org.objectweb.jonas.ws.axis
Class JAxisServiceFactory

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

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

Field Summary
static java.lang.String REF_CLIENT_CONFIG
          Ref name for client-config wsdd
static java.lang.String REF_SERVICE_CALL_PROPS
          Ref name for the service call properties
static java.lang.String REF_SERVICE_PORT2WSDL
          Ref name for a Map linking service-endpoint-interface (from port-component) to wsdl:port
static java.lang.String REF_SERVICE_QNAME
          Ref name for the service QName
static java.lang.String REF_SERVICE_STUB_PROPS
          Ref name for the service call properties
static java.lang.String REF_SERVICE_WSDL
          Ref name for the service WSDL URL
static java.lang.String REF_SERVICE_WSDL_PORT_LIST
          Ref name for the service port list
 
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
 

Field Detail

REF_CLIENT_CONFIG

public static final java.lang.String REF_CLIENT_CONFIG
Ref name for client-config wsdd

See Also:
Constant Field Values

REF_SERVICE_WSDL

public static final java.lang.String REF_SERVICE_WSDL
Ref name for the service WSDL URL

See Also:
Constant Field Values

REF_SERVICE_QNAME

public static final java.lang.String REF_SERVICE_QNAME
Ref name for the service QName

See Also:
Constant Field Values

REF_SERVICE_PORT2WSDL

public static final java.lang.String REF_SERVICE_PORT2WSDL
Ref name for a Map linking service-endpoint-interface (from port-component) to wsdl:port

See Also:
Constant Field Values

REF_SERVICE_CALL_PROPS

public static final java.lang.String REF_SERVICE_CALL_PROPS
Ref name for the service call properties

See Also:
Constant Field Values

REF_SERVICE_STUB_PROPS

public static final java.lang.String REF_SERVICE_STUB_PROPS
Ref name for the service call properties

See Also:
Constant Field Values

REF_SERVICE_WSDL_PORT_LIST

public static final java.lang.String REF_SERVICE_WSDL_PORT_LIST
Ref name for the service port list

See Also:
Constant Field Values
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 !!!)