org.ow2.petals.se.jsr181.model
Class JaxConfigurationHandler

java.lang.Object
  extended by org.ow2.petals.se.jsr181.model.JaxConfigurationHandler

public class JaxConfigurationHandler
extends java.lang.Object

A handler for SU elements. FIXME: do we need a separate class loader for every provides? (Each class loader loads the same JARs and thus increases the risk of having unclosed JARs).

Author:
Vincent Zurczak - EBM WebSourcing

Constructor Summary
JaxConfigurationHandler(JaxConfiguration jaxConfiguration)
          Constructor.
 
Method Summary
 org.apache.axis2.description.AxisService getAxisService()
           
 java.lang.String getEndpointName()
           
 void start(Axis2Deployer axis2Deployer, java.util.logging.Logger logger)
          Creates the Axis service and its class loader.
 void stop(org.apache.axis2.context.ConfigurationContext axisContext)
          Unregisters the Axis service and "close" its class loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxConfigurationHandler

public JaxConfigurationHandler(JaxConfiguration jaxConfiguration)
Constructor.

Parameters:
jaxConfiguration - a JAX configuration
Method Detail

getAxisService

public org.apache.axis2.description.AxisService getAxisService()
Returns:
the axisService

getEndpointName

public java.lang.String getEndpointName()
Returns:
the end-point name associated with this handler
See Also:
JaxConfiguration.getEndpointName()

start

public void start(Axis2Deployer axis2Deployer,
                  java.util.logging.Logger logger)
           throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException
Creates the Axis service and its class loader.

This method must be called when the associated SU is stared.

Parameters:
axis2Deployer - the Axis2 deployer
logger - the component's logger
Throws:
org.ow2.petals.component.framework.api.exception.PEtALSCDKException - if something went wrong

stop

public void stop(org.apache.axis2.context.ConfigurationContext axisContext)
          throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException
Unregisters the Axis service and "close" its class loader.

This method must be called when the associated SU is stopped.

Parameters:
axisContext - the Axis context kept by the component
Throws:
org.ow2.petals.component.framework.api.exception.PEtALSCDKException - if Axis could not unregister the service


Copyright © 2005-2012 Petals Link (EBM Websourcing). All Rights Reserved.