com.softwareag.centrasite.api.service
Class CentraSiteServiceFactory

java.lang.Object
  extended by com.softwareag.centrasite.api.service.CentraSiteServiceFactory

public final class CentraSiteServiceFactory
extends java.lang.Object

CentraSiteServiceFactory which instantiates the CentraSiteService based on the user inputs


Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CentraSiteServiceFactory getInstance()

createService

public CentraSiteService createService()
                                throws CLLException
Creates a service that gets its configuration via the pre-configured property com.softwareag.centrasite.api.configuration.basedir

Returns:
CentraSiteService which reads the configuration from the default property.
Throws:
CLLException

createService

public CentraSiteService createService(java.lang.String baseDir)
                                throws CLLException
Creates a service that gets its configuration from the directory given by the string argument.

Returns:
CentraSiteService which reads the configuration from the given baseDir.
Throws:
CLLException

createService

public CentraSiteService createService(java.util.Properties properties)
                                throws CLLException
Creates a service that gets its configuration via properties.

Returns:
CentraSiteService which reads the configuration from the given properties.
Throws:
CLLException