org.apache.cocoon.webservices
Class AbstractLogEnabledService

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.webservices.AbstractLogEnabledService
All Implemented Interfaces:
javax.xml.rpc.server.ServiceLifecycle, LogEnabled
Direct Known Subclasses:
AbstractComposableService

public abstract class AbstractLogEnabledService
extends AbstractLogEnabled
implements javax.xml.rpc.server.ServiceLifecycle

Base class for providing LogEnabled SOAP services.

Note, this class is intended to be used for SOAP Services that require accessing to a logging object for reporting purposes only.

If you require full Avalon support for your SOAP Service, then consider using the AvalonProvider support built into Axis itself.

Version:
CVS $Id: AbstractLogEnabledService.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Marcus Crafter

Field Summary
protected  javax.xml.rpc.handler.MessageContext m_context
           
protected  javax.xml.rpc.server.ServletEndpointContext m_endPointContext
           
 
Constructor Summary
AbstractLogEnabledService()
           
 
Method Summary
 void destroy()
          Called by the JAX-RPC runtime to signal the end of this service
 void init(Object context)
          ServiceLifecycle init method.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_endPointContext

protected javax.xml.rpc.server.ServletEndpointContext m_endPointContext

m_context

protected javax.xml.rpc.handler.MessageContext m_context
Constructor Detail

AbstractLogEnabledService

public AbstractLogEnabledService()
Method Detail

init

public void init(Object context)
          throws javax.xml.rpc.ServiceException
ServiceLifecycle init method. Updates an internal reference to the given context object, and enables logging for this service.

Specified by:
init in interface javax.xml.rpc.server.ServiceLifecycle
Parameters:
context - a javax.xml.rpc.ServiceLifecycle context Object instance
Throws:
javax.xml.rpc.ServiceException - if an error occurs

destroy

public void destroy()
Called by the JAX-RPC runtime to signal the end of this service

Specified by:
destroy in interface javax.xml.rpc.server.ServiceLifecycle


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.