org.jboss.portal.server.config
Class ServerConfigService
java.lang.Object
org.jboss.portal.server.config.ServerConfigService
- All Implemented Interfaces:
- ServerConfig
public class ServerConfigService
- extends java.lang.Object
- implements ServerConfig
- Version:
- $Revision: 7258 $
- Author:
- Julien Viet
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)
create
public void create()
throws java.lang.Exception
- Throws:
java.lang.Exception
destroy
public void destroy()
throws java.lang.Exception
- Throws:
java.lang.Exception