Package com.aspectran.core.component
Interface Component
- All Known Subinterfaces:
SessionHandler
,SessionManager
,SessionStore
- All Known Implementing Classes:
AbstractComponent
,AbstractLettuceSessionStore
,AbstractSessionCache
,AbstractSessionHandler
,AbstractSessionStore
,AspectRuleRegistry
,ClusterLettuceSessionStore
,DefaultActivityContext
,DefaultBeanRegistry
,DefaultLettuceSessionStore
,DefaultSessionCache
,DefaultSessionManager
,DefaultTemplateRenderer
,FileSessionStore
,MasterReplicaLettuceSessionStore
,ScheduleRuleRegistry
,TemplateRuleRegistry
,TransletRuleRegistry
public interface Component
The interface for the lifecycle of the component.
Created: 2017. 7. 4.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Destroy the component.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.
-
Method Details
-
initialize
Initialize the component.- Throws:
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 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 the component has been destroyed.- Returns:
- true if the component has been destroyed
-
getComponentName
String getComponentName()Returns the component name.- Returns:
- the component name
-