Package com.aspectran.core.component
Interface Component
-
- All Known Subinterfaces:
SessionDataStore
,SessionHandler
,SessionManager
- All Known Implementing Classes:
AbstractBeanFactory
,AbstractBeanRegistry
,AbstractComponent
,AbstractSessionDataStore
,AbstractSessionHandler
,AspectranActivityContext
,AspectRuleRegistry
,ContextBeanRegistry
,ContextTemplateProcessor
,DefaultSessionManager
,FileSessionDataStore
,ScheduleRuleRegistry
,TemplateRuleRegistry
,TransletRuleRegistry
public interface Component
The lifecycle interface for generic components.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
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:
- if true, the component is currently available
-
isInitialized
boolean isInitialized()
Returns whether or not the component has been initialized.- Returns:
- if true, the component has been initialized
-
isDestroyed
boolean isDestroyed()
Returns whether or not the component has been destroyed.- Returns:
- ㅑf true, the component has been destroyed
-
getComponentName
java.lang.String getComponentName()
Returns the component name.- Returns:
- the component name
-
-