org.objectweb.jonas.ws.axis
Class JAxisServiceFactory

java.lang.Object
  extended byorg.objectweb.jonas.ws.axis.JAxisServiceFactory
All Implemented Interfaces:
JServiceFactory, javax.naming.spi.ObjectFactory

public class JAxisServiceFactory
extends java.lang.Object
implements JServiceFactory

Axis specific JServiceFactory. Create an Axis Service Reference. Used to recreate Axis Service bound in JNDI (ObjectFactory)

Author:
Guillaume Sauthier, Xavier Delplanque

Constructor Summary
JAxisServiceFactory()
          Construct a new JAxisServiceFactory.
 
Method Summary
 java.lang.Object getObjectInstance(java.lang.Object refObject, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable env)
          Create a new instance of Axis Service (or sub classes) from a Reference object.
 javax.naming.Reference getServiceReference(ServiceRefDesc sr, java.lang.ClassLoader cl)
          Create a Reference on a Service from an Axis Service object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAxisServiceFactory

public JAxisServiceFactory()
Construct a new JAxisServiceFactory.

Method Detail

getServiceReference

public javax.naming.Reference getServiceReference(ServiceRefDesc sr,
                                                  java.lang.ClassLoader cl)
                                           throws WSServiceException
Create a Reference on a Service from an Axis Service object.

Specified by:
getServiceReference in interface JServiceFactory
Parameters:
sr - the service-ref instance where informations are extracted
cl - the classloader where config files can be loaded
Returns:
a Reference on a Service from an Axis Service object.
Throws:
WSServiceException - if wsdd cannot be load or merged

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object refObject,
                                          javax.naming.Name name,
                                          javax.naming.Context nameCtx,
                                          java.util.Hashtable env)
                                   throws java.lang.Exception
Create a new instance of Axis Service (or sub classes) from a Reference object.

Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
Parameters:
refObject - the Reference to create an instance from
name - Object Name
nameCtx - Context
env - the environnment
Returns:
A Service instance configured
Throws:
java.lang.Exception - when instanciation fail (check if this is a correct behavior !!!)