Package org.nuxeo.ecm.webengine.session
Class AbstractComponent
java.lang.Object
org.nuxeo.ecm.webengine.session.AbstractComponent
- All Implemented Interfaces:
Serializable,Component
- Author:
- Bogdan Stefanescu
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(UserSession session) Destroy this component.voiddoDestroy(UserSession session) voiddoInitialize(UserSession session, String name) getName()Get the component name if any.voidinitialize(UserSession session, String name) The component was instantiated by the given session.booleanisLive()Checks whether this component was initialized and can be used.
-
Field Details
-
name
-
-
Constructor Details
-
AbstractComponent
public AbstractComponent()
-
-
Method Details
-
getName
Description copied from interface:ComponentGet the component name if any. A component may be initialized under a name. For singleton components no name is needed so this method might return null. -
isLive
public boolean isLive()Description copied from interface:ComponentChecks whether this component was initialized and can be used. -
initialize
Description copied from interface:ComponentThe component was instantiated by the given session.This method should initialize the component. After returning the component will become visible in the session.
- Specified by:
initializein interfaceComponent- Parameters:
session- the user session that created the componentname- the name under this component is registered. Can be null for unnamed component.- Throws:
SessionException- an internal error occurred
-
destroy
Description copied from interface:ComponentDestroy this component. This is called by the when the owning session is about to be destroyed. The component should release any allocated resources.- Specified by:
destroyin interfaceComponent- Parameters:
session- the session owning this component- Throws:
SessionException- an internal error occurred
-
doInitialize
- Throws:
SessionException
-
doDestroy
- Throws:
SessionException
-