Package com.aspectran.core.component
Interface Component
-
- All Known Subinterfaces:
SessionHandler,SessionManager,SessionStore
- All Known Implementing Classes:
AbstractComponent,AbstractSessionCache,AbstractSessionHandler,AbstractSessionStore,AspectranActivityContext,AspectRuleRegistry,ContextualBeanRegistry,ContextualTemplateRenderer,DefaultSessionCache,DefaultSessionManager,FileSessionStore,ScheduleRuleRegistry,TemplateRuleRegistry,TransletRuleRegistry
public interface ComponentThe interface for the lifecycle of the component.Created: 2017. 7. 4.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroy()Destroy the component.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.booleanisDestroying()Returns whether the component is being destroyed.booleanisInitialized()Returns whether or not the component has been initialized.
-
-
-
Method Detail
-
initialize
void initialize() throws java.lang.ExceptionInitialize 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
-
-