public abstract class MessageDrivenObjectSupport extends java.lang.Object implements MessageDrivenObject
MessageDrivenObjectSupport is an abstract base
class for implementing your own MessageDrivenObject instance
with some useful implementation level methods.
| Modifier and Type | Field and Description |
|---|---|
private javax.servlet.ServletContext |
context
The ServletContext with which this dispatcher is associated.
|
private org.apache.commons.logging.Log |
log
The Log to which logging calls will be made.
|
| Constructor and Description |
|---|
MessageDrivenObjectSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called when the web application (servlet context) is being
destroyed, giving the bean chance to do a graceful shutdown
|
protected org.apache.commons.logging.Log |
getLog()
Provides access to a logger which can use JDK 1.4 logging, log4j or logkit
under the covers.
|
javax.servlet.ServletContext |
getServletContext() |
void |
init()
This method allows the init() method to be overriden without having to
call the super.init( ServletContext ) method first.
|
void |
init(javax.servlet.ServletContext context)
Called when this message listener bean is initialized
by the Serlvet container.
|
protected void |
log(java.lang.String message)
Logs a message to the current ServletContext
|
protected void |
log(java.lang.String message,
java.lang.Throwable t)
Logs a message and exception the current ServletContext
|
private org.apache.commons.logging.Log log
private javax.servlet.ServletContext context
public javax.servlet.ServletContext getServletContext()
public void init()
throws javax.servlet.ServletException
GenericServlet.javax.servlet.ServletExceptionpublic void init(javax.servlet.ServletContext context)
throws javax.servlet.ServletException
MessageDrivenObjectinit in interface MessageDrivenObjectjavax.servlet.ServletExceptionpublic void destroy()
MessageDrivenObjectdestroy in interface MessageDrivenObjectprotected org.apache.commons.logging.Log getLog()
protected void log(java.lang.String message)
protected void log(java.lang.String message,
java.lang.Throwable t)