com.ibm.websphere.management.configservice
Class ConfigServiceFactory
- java.lang.Object
-
- com.ibm.websphere.management.configservice.ConfigServiceFactory
-
public class ConfigServiceFactory extends java.lang.Object
The factory to construct a ConfigService.
-
-
Constructor Summary
Constructors Constructor and Description ConfigServiceFactory()
-
Method Summary
Methods Modifier and Type Method and Description static ConfigService
createConfigService(boolean enable, java.util.Properties props)
Create aConfigService
object.static ConfigService
getConfigService()
Returns the instance ofConfigService
.
-
-
-
Method Detail
-
createConfigService
public static ConfigService createConfigService(boolean enable, java.util.Properties props) throws AdminException
Create aConfigService
object.ConfigService
object is a singleton, thus an exception will be thrown if this method is called twice. Normally user should not need to call this method asConfigService
is instantiated and initialized during server start-up time.- Throws:
AdminException
-
getConfigService
public static ConfigService getConfigService()
Returns the instance ofConfigService
.ConfigService
is a singleton, therefore this method is static.
-
-