|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.webengine.session.AbstractComponent
public abstract class AbstractComponent
Constructor Summary | |
---|---|
AbstractComponent()
|
Method Summary | |
---|---|
void |
destroy(UserSession session)
Destroy this component. |
void |
doDestroy(UserSession session)
|
void |
doInitialize(UserSession session,
String name)
|
String |
getName()
Get the component name if any. |
void |
initialize(UserSession session,
String name)
The component was instantiated by the given session. |
boolean |
isLive()
Checks whether this component was initialized and can be used. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractComponent()
Method Detail |
---|
public String getName()
Component
getName
in interface Component
public boolean isLive()
Component
isLive
in interface Component
public void initialize(UserSession session, String name) throws SessionException
Component
This method should initialize the component. After returning the component will become visible in the session.
initialize
in interface Component
session
- the user session that created the componentname
- the name under this component is registered.
Can be null for unnamed component.
InvalidStateException
- if the component is not in an appropriate life cycle state
SessionException
- an internal error occurredpublic void destroy(UserSession session) throws SessionException
Component
destroy
in interface Component
session
- the session owning this component
InvalidStateException
- if the component is not in an appropriate life cycle state
SessionException
- an internal error occurredpublic void doInitialize(UserSession session, String name) throws SessionException
SessionException
public void doDestroy(UserSession session) throws SessionException
SessionException
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |