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 String getName()
Component
public boolean isLive()
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 stateSessionException
- an internal error occurredpublic void destroy(UserSession session) throws SessionException
Component
destroy
in interface Component
session
- 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
SessionException
public void doDestroy(UserSession session) throws SessionException
SessionException
Copyright © 2013 Nuxeo SA. All Rights Reserved.