| Constructor and Description |
|---|
JohnsonEventListener(javax.servlet.ServletContext servletContext)
Creates a
JohnsonEventListener which will retrieve the JohnsonEventContainer from the
ServletContext using Johnson.getEventContainer(ServletContext), if one is provided, or
using Johnson.getEventContainer() if not. |
| Modifier and Type | Method and Description |
|---|---|
void |
onAdd(AddEvent e)
|
void |
onRemove(RemoveEvent e)
Attempts to remove the Johnson
Event wrapped by the provided RemoveEvent from the container. |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
public JohnsonEventListener(@Nullable javax.servlet.ServletContext servletContext)
JohnsonEventListener which will retrieve the JohnsonEventContainer from the
ServletContext using Johnson.getEventContainer(ServletContext), if one is provided, or
using Johnson.getEventContainer() if not.servletContext - the servlet context to retrieve the container from, which may not be null@EventListener public void onRemove(@Nonnull RemoveEvent e)
Event wrapped by the provided RemoveEvent from the container.e - the remove eventpublic void setServletContext(javax.servlet.ServletContext servletContext)
Copyright © 2018 Atlassian. All rights reserved.