public class DefaultEventContext extends Object implements EventContext
Modifier and Type | Field and Description |
---|---|
private Object |
attachement |
private Session |
session |
Constructor and Description |
---|
DefaultEventContext() |
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()
EventContext
attached
to
this context.getAttachment
in interface EventContext
null
if no object was attached or
null
was attachedpublic Session getSession()
getSession
in interface EventContext
public void setAttachment(Object attachement)
EventContext
Event
which is associated with this
context.setAttachment
in interface EventContext
public void setSession(Session session)
setSession
in interface EventContext
Copyright © 2013. All Rights Reserved.