|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.centrasite.lcmapi.LCMFactory
public abstract class LCMFactory
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 |
---|
public static LCMFactory newInstance() throws LCMException
LCMFactory
object.
LCMFactory
LCMFactory
- - if the LCMFactory could not be instantiated
LCMException
public abstract LCMRegistryService createLCMRegistryService(javax.xml.registry.Connection connection) throws LCMException
LCMRegistryService
for the given JAXR connection.
The factory ensures that there is at most one LCM registry service for
each JAXR connection.
connection
- the JAXR connection for which the LCMRegistryService is to be provided
LCMException
- - if the LCM provider encounters an internal error
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |