org.apache.cocoon.webservices
Class AbstractComposableService

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

public abstract class AbstractComposableService
extends AbstractLogEnabledService
implements Composable

Base class for providing Composable 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: AbstractComposableService.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Marcus Crafter

Field Summary
protected  ComponentManager m_manager
           
 
Fields inherited from class org.apache.cocoon.webservices.AbstractLogEnabledService
m_context, m_endPointContext
 
Constructor Summary
AbstractComposableService()
           
 
Method Summary
 void compose(ComponentManager manager)
          Compose this service.
 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_manager

protected ComponentManager m_manager
Constructor Detail

AbstractComposableService

public AbstractComposableService()
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

compose

public void compose(ComponentManager manager)
             throws ComponentException
Compose this service.

Specified by:
compose in interface Composable
Parameters:
manager - a ComponentManager instance
Throws:
ComponentException - 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
Overrides:
destroy in class AbstractLogEnabledService


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