public class DefaultEventContext extends Object implements EventContext
| Modifier and Type | Field and Description |
|---|---|
private Object |
attachement |
private Session |
session |
| Constructor and Description |
|---|
DefaultEventContext() |
DefaultEventContext(Session session,
Object attachement) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttachment()
Retrieves an object which is
attached to
this context. |
Session |
getSession() |
void |
setAttachment(Object attachement)
Attaches an object to this context to store a stateful information
specific to the
Event which is associated with this
context. |
void |
setSession(Session session) |
public Object getAttachment()
EventContextattached to
this context.getAttachment in interface EventContextnull if no object was attached or
null was attachedpublic Session getSession()
getSession in interface EventContextpublic void setAttachment(Object attachement)
EventContextEvent which is associated with this
context.setAttachment in interface EventContextpublic void setSession(Session session)
setSession in interface EventContextCopyright © 2013. All Rights Reserved.