public abstract class AbstractComponent extends Object implements Component
| Constructor and Description |
|---|
AbstractComponent() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public AbstractComponent()
public String getName()
Componentpublic boolean isLive()
Componentpublic void initialize(UserSession session, String name) throws SessionException
ComponentThis method should initialize the component. After returning the component will become visible in the session.
initialize in interface Componentsession - 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 stateSessionException - an internal error occurredpublic void destroy(UserSession session) throws SessionException
Componentdestroy in interface Componentsession - the session owning this componentInvalidStateException - if the component is not in an appropriate life cycle stateSessionException - an internal error occurredpublic void doInitialize(UserSession session, String name) throws SessionException
SessionExceptionpublic void doDestroy(UserSession session) throws SessionException
SessionExceptionCopyright © 2016 Nuxeo SA. All rights reserved.