public final class CentraSiteServiceFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
CentraSiteService |
createService()
Creates a service that gets its configuration via the pre-configured
property com.softwareag.centrasite.api.configuration.basedir.
|
CentraSiteService |
createService(java.util.Properties properties)
Creates a service that gets its configuration via properties.
|
CentraSiteService |
createService(java.lang.String baseDir)
Creates a service that gets its configuration from the directory given by
the string argument.
|
static CentraSiteServiceFactory |
getInstance()
Gets the factory instance.
|
public static CentraSiteServiceFactory getInstance()
CentraSiteServiceFactory
instancepublic CentraSiteService createService() throws CLLException
CentraSiteService
which reads the configuration from the
default property.CLLException
- If the CentraSite service cannot be createdpublic CentraSiteService createService(java.lang.String baseDir) throws CLLException
baseDir
- The base directory pathCentraSiteService
which reads the configuration from the
given baseDir.CLLException
- If the CentraSite service cannot be createdpublic CentraSiteService createService(java.util.Properties properties) throws CLLException
properties
- The Properties
from which the service will be createdCentraSiteService
which reads the configuration from the
given properties.CLLException
- If the CentraSite service cannot be created