Package org.gatein.pc.api.spi
Interface InstanceContext
-
public interface InstanceContext- Version:
- $Revision: 5448 $
- Author:
- Julien Viet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AccessModegetAccessMode()Return the access mode to this portlet instance.StringgetId()Return an id that can differenciate instances.PortletStateType<?>getStateType()Returns the state type managed by the consumer.voidonStateEvent(StateEvent event)A state event occured.
-
-
-
Method Detail
-
getId
String getId()
Return an id that can differenciate instances.- Returns:
- the instance id
-
getAccessMode
AccessMode getAccessMode()
Return the access mode to this portlet instance.- Returns:
- the access mode
-
onStateEvent
void onStateEvent(StateEvent event)
A state event occured.- Parameters:
event- the event
-
getStateType
PortletStateType<?> getStateType()
Returns the state type managed by the consumer. If the consumer cannot manage state by itself, then null must be returned.- Returns:
- the consumer state type
-
-