站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

ServerConfigService - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.server.config
Class ServerConfigService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.common.system.AbstractJBossService
              extended byorg.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


Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.portal.server.config.ServerConfig
DOMAIN_KEY
 
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
 
Constructor Summary
ServerConfigService()
           
 
Method Summary
protected  void createService()
           
protected  void destroyService()
           
 java.lang.String dumpProperties(boolean html)
           
 java.lang.String getConfigLocation()
           
 LoaderResource getConfigResource()
           
 java.lang.String getDomain()
          Return the domain of the portal server.
 java.lang.String getProperty(java.lang.String name)
          Return a property of the server configuration.
 void setConfigLocation(java.lang.String configLocation)
           
 void setProperty(java.lang.String name, java.lang.String value)
          Set a property when the value is not null or remove it when it is null.
 
Methods inherited from class org.jboss.portal.common.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
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
 

Constructor Detail

ServerConfigService

public ServerConfigService()
Method Detail

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 name
value - 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