org.apache.cocoon.webservices
Class AbstractServiceableService

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.webservices.AbstractLogEnabledService
          extended byorg.apache.cocoon.webservices.AbstractServiceableService
All Implemented Interfaces:
LogEnabled, Serviceable, javax.xml.rpc.server.ServiceLifecycle

public abstract class AbstractServiceableService
extends AbstractLogEnabledService
implements Serviceable

Base class for providing Serviceable SOAP services.

Note, this class is intended to be used in SOAP Services that require references to Component's provided by the Cocoon Component Manager.

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

Version:
CVS $Id: AbstractServiceableService.java 55395 2004-10-23 19:11:55Z cziegeler $
Author:
Marcus Crafter

Field Summary
protected  ServiceManager m_manager
           
 
Fields inherited from class org.apache.cocoon.webservices.AbstractLogEnabledService
m_context, m_endPointContext
 
Constructor Summary
AbstractServiceableService()
           
 
Method Summary
 void destroy()
          Called by the JAX-RPC runtime to signal the end of this service
 void init(Object context)
          ServiceLifecycle init method.
 void service(ServiceManager manager)
           
 
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_manager

protected ServiceManager m_manager
Constructor Detail

AbstractServiceableService

public AbstractServiceableService()
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
Overrides:
init in class AbstractLogEnabledService
Parameters:
context - a javax.xml.rpc.ServiceLifecycle context Object instance
Throws:
javax.xml.rpc.ServiceException - if an error occurs

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

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
Overrides:
destroy in class AbstractLogEnabledService


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.