Package com.aspectran.core.component
Interface Component
-
- All Known Subinterfaces:
SessionDataStore
,SessionHandler
,SessionManager
- All Known Implementing Classes:
AbstractComponent
,AbstractSessionCache
,AbstractSessionDataStore
,AbstractSessionHandler
,AspectranActivityContext
,AspectRuleRegistry
,ContextualBeanRegistry
,ContextualTemplateRenderer
,DefaultSessionCache
,DefaultSessionManager
,FileSessionDataStore
,ScheduleRuleRegistry
,TemplateRuleRegistry
,TransletRuleRegistry
public interface Component
The interface for the lifecycle of the component.Created: 2017. 7. 4.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
destroy()
Destroy the component.java.lang.String
getComponentName()
Returns the component name.void
initialize()
Initialize the component.boolean
isAvailable()
Returns whether the component is currently available.boolean
isDestroyed()
Returns whether or not the component has been destroyed.boolean
isDestroying()
Returns whether the component is being destroyed.boolean
isInitialized()
Returns whether or not the component has been initialized.
-
-
-
Method Detail
-
initialize
void initialize() throws java.lang.Exception
Initialize the component.- Throws:
java.lang.Exception
- if the component fails to initialize
-
destroy
void destroy()
Destroy the component.
-
isAvailable
boolean isAvailable()
Returns whether the component is currently available.- Returns:
- true if the component is currently available
-
isInitialized
boolean isInitialized()
Returns whether or not the component has been initialized.- Returns:
- true if the component has been initialized
-
isDestroying
boolean isDestroying()
Returns whether the component is being destroyed.- Returns:
- true if the component is being destroyed
-
isDestroyed
boolean isDestroyed()
Returns whether or not the component has been destroyed.- Returns:
- true if the component has been destroyed
-
getComponentName
java.lang.String getComponentName()
Returns the component name.- Returns:
- the component name
-
-