Package com.aspectran.core.component
Class AbstractComponent
- java.lang.Object
-
- com.aspectran.core.component.AbstractComponent
-
- All Implemented Interfaces:
Component
- Direct Known Subclasses:
AbstractBeanFactory,AbstractSessionDataStore,AbstractSessionHandler,AspectranActivityContext,AspectRuleRegistry,ContextTemplateRenderer,ScheduleRuleRegistry,TemplateRuleRegistry,TransletRuleRegistry
public abstract class AbstractComponent extends java.lang.Object implements Component
The Abstract Component.Created: 2017. 7. 4.
-
-
Constructor Summary
Constructors Constructor Description AbstractComponent()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroy the component.protected abstract voiddoDestroy()protected abstract voiddoInitialize()java.lang.StringgetComponentName()Returns the component name.voidinitialize()Initialize the component.booleanisAvailable()Returns whether the component is currently available.booleanisDestroyed()Returns whether or not the component has been destroyed.booleanisInitialized()Returns whether or not the component has been initialized.
-
-
-
Method Detail
-
doInitialize
protected abstract void doInitialize() throws java.lang.Exception- Throws:
java.lang.Exception
-
doDestroy
protected abstract void doDestroy() throws java.lang.Exception- Throws:
java.lang.Exception
-
initialize
public void initialize() throws java.lang.ExceptionDescription copied from interface:ComponentInitialize the component.- Specified by:
initializein interfaceComponent- Throws:
java.lang.Exception- if the component fails to initialize
-
destroy
public void destroy()
Description copied from interface:ComponentDestroy the component.
-
isAvailable
public boolean isAvailable()
Description copied from interface:ComponentReturns whether the component is currently available.- Specified by:
isAvailablein interfaceComponent- Returns:
- if true, the component is currently available
-
isInitialized
public boolean isInitialized()
Description copied from interface:ComponentReturns whether or not the component has been initialized.- Specified by:
isInitializedin interfaceComponent- Returns:
- if true, the component has been initialized
-
isDestroyed
public boolean isDestroyed()
Description copied from interface:ComponentReturns whether or not the component has been destroyed.- Specified by:
isDestroyedin interfaceComponent- Returns:
- ㅑf true, the component has been destroyed
-
getComponentName
public java.lang.String getComponentName()
Description copied from interface:ComponentReturns the component name.- Specified by:
getComponentNamein interfaceComponent- Returns:
- the component name
-
-