com.centrasite.lcmapi
Class LCMFactory

java.lang.Object
  extended by com.centrasite.lcmapi.LCMFactory

public abstract class LCMFactory
extends java.lang.Object

The LCMFactory is the abstract base class for factory classes for creating an LCM registry service. The static method newInstance() provides a new factory instance. By default, the CentraSite implementation of LCMFactory is returned. The default implementation can be changed by setting system property "com.centrasite.lcmapi.LCMFactoryClass", which determines the class of which an instance will be provided. An LCMRegistryService instance can be created from the factory instance. The LCMRegistryService instance is used to generate instances of LCMAdminManager and LCMRuntimeManager. LCMAdminManager - This is used to create LCModel and LCMNode instances LCMRuntimeManager - This is used to search Lifecycle models and Lifecycle states. Also it is used to set and modify the Lifecycle state of RegistryObject(s) Usage: LCMFactory factory = LCMFactory.newInstance() LCMRegistryService lcmRegService = factory.createLCMRegistryService(jaxrConnection); LCMAdminManager adminManager = lcmRegService.getLCMAdminManager(); LCMRuntimeManager runtimeManager = lcmRegService.getLCMRuntimeManager();


Method Summary
abstract  LCMRegistryService createLCMRegistryService(javax.xml.registry.Connection connection)
          Create an LCMRegistryService for the given JAXR connection.
static LCMFactory newInstance()
          Creates an LCMFactory object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static LCMFactory newInstance()
                              throws LCMException
Creates an LCMFactory object.

Returns:
a new instance of an LCMFactory
Throws:
LCMFactory - - if the LCMFactory could not be instantiated
LCMException

createLCMRegistryService

public abstract LCMRegistryService createLCMRegistryService(javax.xml.registry.Connection connection)
                                                     throws LCMException
Create an LCMRegistryService for the given JAXR connection. The factory ensures that there is at most one LCM registry service for each JAXR connection.

Parameters:
connection - the JAXR connection for which the LCMRegistryService is to be provided
Returns:
the LCMRegistryService created by this call
Throws:
LCMException - - if the LCM provider encounters an internal error