Package com.aspectran.core.component
Class AbstractComponent
java.lang.Object
com.aspectran.core.component.AbstractComponent
- All Implemented Interfaces:
Component
- Direct Known Subclasses:
AbstractSessionCache
,AbstractSessionHandler
,AbstractSessionStore
,AspectRuleRegistry
,DefaultActivityContext
,DefaultBeanRegistry
,DefaultTemplateRenderer
,ScheduleRuleRegistry
,TemplateRuleRegistry
,TransletRuleRegistry
Abstract Implementation of
Component
.
Created: 2017. 7. 4.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Destroy the component.protected abstract void
protected abstract void
Returns the component name.void
Initialize the component.boolean
Returns whether the component is currently available.boolean
Returns whether the component has been destroyed.boolean
Returns whether the component is being destroyed.boolean
Returns whether the component has been initialized.
-
Constructor Details
-
AbstractComponent
public AbstractComponent()
-
-
Method Details
-
doInitialize
- Throws:
Exception
-
doDestroy
- Throws:
Exception
-
initialize
Description copied from interface:Component
Initialize the component.- Specified by:
initialize
in interfaceComponent
- Throws:
Exception
- if the component fails to initialize
-
destroy
public void destroy()Description copied from interface:Component
Destroy the component. -
isAvailable
public boolean isAvailable()Description copied from interface:Component
Returns whether the component is currently available.- Specified by:
isAvailable
in interfaceComponent
- Returns:
- true if the component is currently available
-
isInitialized
public boolean isInitialized()Description copied from interface:Component
Returns whether the component has been initialized.- Specified by:
isInitialized
in interfaceComponent
- Returns:
- true if the component has been initialized
-
isDestroying
public boolean isDestroying()Description copied from interface:Component
Returns whether the component is being destroyed.- Specified by:
isDestroying
in interfaceComponent
- Returns:
- true if the component is being destroyed
-
isDestroyed
public boolean isDestroyed()Description copied from interface:Component
Returns whether the component has been destroyed.- Specified by:
isDestroyed
in interfaceComponent
- Returns:
- true if the component has been destroyed
-
getComponentName
Description copied from interface:Component
Returns the component name.- Specified by:
getComponentName
in interfaceComponent
- Returns:
- the component name
-