com.atlassian.johnson
Class JohnsonEventContainer
java.lang.Object
com.atlassian.johnson.JohnsonEventContainer
public class JohnsonEventContainer
- extends java.lang.Object
|
Method Summary |
void |
addEvent(Event event)
Adds an application event to the events Map |
static JohnsonEventContainer |
get(javax.servlet.ServletContext context)
|
java.util.Collection |
getEvents()
Gets a collection of the Event objects |
boolean |
hasEvents()
Determine if there are Application Error Events |
void |
removeEvent(Event event)
Removes an application event from the events Map |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVLET_CONTEXT_KEY
public static java.lang.String SERVLET_CONTEXT_KEY
JohnsonEventContainer
public JohnsonEventContainer()
get
public static JohnsonEventContainer get(javax.servlet.ServletContext context)
hasEvents
public boolean hasEvents()
- Determine if there are Application Error Events
- Returns:
- true if there are application errors otherwise false
addEvent
public void addEvent(Event event)
- Adds an application event to the events Map
- Parameters:
event - New Event
removeEvent
public void removeEvent(Event event)
- Removes an application event from the events Map
- Parameters:
event - Event to be removed
getEvents
public java.util.Collection getEvents()
- Gets a collection of the Event objects
- Returns:
- an unmodifiable connection
Copyright © 2012 Atlassian. All Rights Reserved.