Class LocalLifecycleManagerImpl
- java.lang.Object
-
- com.anaptecs.jeaf.core.servicechannel.base.AbstractLifecycleManager
-
- com.anaptecs.jeaf.core.servicechannel.base.GenericLifecycleManager
-
- com.anaptecs.jeaf.core.servicechannel.unmanaged.LocalLifecycleManagerImpl
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.servicechannel.api.LifecycleManager
public class LocalLifecycleManagerImpl extends GenericLifecycleManager
This class implements a JEAF lifecycle manager. This implementation does not contain any environment specific operations and therefore can be used in multiple situations. During initialization all components and services will be created / loaded.- Author:
- JEAF Development Team
-
-
Field Summary
-
Fields inherited from class com.anaptecs.jeaf.core.servicechannel.base.GenericLifecycleManager
COMPONENT_FACTORIES_FILE, COMPONENT_FACTORY_CLASS_NAMES
-
-
Constructor Summary
Constructors Constructor Description LocalLifecycleManagerImpl()
Initialize object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.anaptecs.jeaf.core.servicechannel.api.ServiceChannel
createServiceChannel()
Method creates a new instance of the service channel that should be used in the specific runtime environment for which a concrete life cycle manager implementation is designed for.protected javax.transaction.UserTransaction
getUserTransaction()
Method returns a UserTransaction object that can be used by the lifecycle manager for internal use only.void
performShutdown()
Method overrides implementation of base class in order to stop the started timer again.void
performStartup()
Method overrides implementation of base class in order to provide platform specific triggering mechanism.-
Methods inherited from class com.anaptecs.jeaf.core.servicechannel.base.GenericLifecycleManager
checkService, checkServiceProvider, fireTriggers, getActivityRegistry, getComponent, getComponents, getServiceChannel, getServiceProviderRegistry, getServiceProviders, getServiceRegistry, getServices, getTriggerInterval, supportsScheduling
-
Methods inherited from class com.anaptecs.jeaf.core.servicechannel.base.AbstractLifecycleManager
addLifecycleListener, getContext, getContextManager, initialize, injectDependencies, isInitalized, shutdown
-
-
-
-
Method Detail
-
createServiceChannel
protected com.anaptecs.jeaf.core.servicechannel.api.ServiceChannel createServiceChannel()
Method creates a new instance of the service channel that should be used in the specific runtime environment for which a concrete life cycle manager implementation is designed for. In this case a local service channel implementation will be returned.- Specified by:
createServiceChannel
in classGenericLifecycleManager
- Returns:
- ServiceChannel Service channel implementation that should be used in this specific environment. The method never returns null.
-
getUserTransaction
protected javax.transaction.UserTransaction getUserTransaction()
Method returns a UserTransaction object that can be used by the lifecycle manager for internal use only.- Specified by:
getUserTransaction
in classGenericLifecycleManager
- Returns:
UserTransaction
UserTransaction that can be used by the lifecycle manager. The method never returns null.
-
performStartup
public void performStartup()
Method overrides implementation of base class in order to provide platform specific triggering mechanism. This means for JSE environments that JEAF that a timer task will be used.- Overrides:
performStartup
in classGenericLifecycleManager
- See Also:
com.anaptecs.jeaf.core.servicechannel.api.LifecycleManager#performStartup()
-
performShutdown
public void performShutdown()
Method overrides implementation of base class in order to stop the started timer again.- Overrides:
performShutdown
in classGenericLifecycleManager
- See Also:
com.anaptecs.jeaf.core.servicechannel.api.LifecycleManager#performShutdown()
-
-