|
Nuxeo Enterprise Platform 5.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Component
A stateful session component.
A component is instantiate and activated the first time it is requested. It is destroyed when the user session ends.
Stateful components are not necessarily thread safe and should be used only from the UserSession thread.
Method Summary | |
---|---|
void |
destroy(UserSession session)
Destroy this component. |
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. |
Method Detail |
---|
void initialize(UserSession session, String name) throws SessionException
This method should initialize the component. After returning the component will become visible in the session.
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 occurredvoid destroy(UserSession session) throws SessionException
session
- the session owning this component
InvalidStateException
- if the component is not in an appropriate life cycle state
SessionException
- an internal error occurredString getName()
boolean isLive()
|
Nuxeo Enterprise Platform 5.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |