|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.messagelet.MessageDrivenObjectSupport
public abstract class MessageDrivenObjectSupport
MessageDrivenObjectSupport is an abstract base
class for implementing your own MessageDrivenObject instance
with some useful implementation level methods.
| Constructor Summary | |
|---|---|
MessageDrivenObjectSupport()
|
|
| Method Summary | |
|---|---|
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(String message)
Logs a message to the current ServletContext |
protected void |
log(String message,
Throwable t)
Logs a message and exception the current ServletContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jms.MessageListener |
|---|
onMessage |
| Constructor Detail |
|---|
public MessageDrivenObjectSupport()
| Method Detail |
|---|
public javax.servlet.ServletContext getServletContext()
public void init()
throws javax.servlet.ServletException
GenericServlet.
javax.servlet.ServletException
public void init(javax.servlet.ServletContext context)
throws javax.servlet.ServletException
MessageDrivenObject
init in interface MessageDrivenObjectjavax.servlet.ServletExceptionpublic void destroy()
MessageDrivenObject
destroy in interface MessageDrivenObjectprotected org.apache.commons.logging.Log getLog()
protected void log(String message)
protected void log(String message,
Throwable t)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||