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,ContextTemplateRenderer,DefaultSessionManager,FileSessionDataStore,ScheduleRuleRegistry,TemplateRuleRegistry,TransletRuleRegistry
public interface ComponentThe lifecycle interface for generic components.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.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:
- 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
-
-