当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
ServerConfigService - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.server.config
Class ServerConfigService
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.portal.common.system.AbstractJBossService
org.jboss.portal.server.config.ServerConfigService
- All Implemented Interfaces:
- javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ServerConfig, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class ServerConfigService
- extends AbstractJBossService
- implements ServerConfig
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerConfigService
public ServerConfigService()
getDomain
public java.lang.String getDomain()
- Description copied from interface:
ServerConfig
- Return the domain of the portal server.
- Specified by:
getDomain
in interface ServerConfig
- Returns:
- the portal server domain.
getConfigLocation
public java.lang.String getConfigLocation()
setConfigLocation
public void setConfigLocation(java.lang.String configLocation)
getConfigResource
public LoaderResource getConfigResource()
getProperty
public java.lang.String getProperty(java.lang.String name)
- Description copied from interface:
ServerConfig
- Return a property of the server configuration.
- Specified by:
getProperty
in interface ServerConfig
- Parameters:
name
- the property name
- Returns:
- the property value or null if it does not exist
setProperty
public void setProperty(java.lang.String name,
java.lang.String value)
- Description copied from interface:
ServerConfig
- Set a property when the value is not null or remove it when it is null.
- Specified by:
setProperty
in interface ServerConfig
- Parameters:
name
- the property namevalue
- the property value
dumpProperties
public java.lang.String dumpProperties(boolean html)
createService
protected void createService()
throws java.lang.Exception
- Throws:
java.lang.Exception
destroyService
protected void destroyService()
throws java.lang.Exception
- Throws:
java.lang.Exception