org.ow2.jonas.ws.axis
Class JAxisServiceFactory

java.lang.Object
  extended by org.ow2.jonas.ws.axis.JAxisServiceFactory
All Implemented Interfaces:
ObjectFactory, JServiceFactory

public class JAxisServiceFactory
extends 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 String REF_CLIENT_CONFIG
          Ref name for client-config wsdd
static String REF_SERVICE_CALL_PROPS
          Ref name for the service call properties
static String REF_SERVICE_PORT2WSDL
          Ref name for a Map linking service-endpoint-interface (from port-component) to wsdl:port
static String REF_SERVICE_QNAME
          Ref name for the service QName
static String REF_SERVICE_STUB_PROPS
          Ref name for the service call properties
static String REF_SERVICE_WSDL
          Ref name for the service WSDL URL
static String REF_SERVICE_WSDL_PORT_LIST
          Ref name for the service port list
 
Constructor Summary
JAxisServiceFactory()
          Construct a new JAxisServiceFactory.
 
Method Summary
 Object getObjectInstance(Object refObject, Name name, Context nameCtx, Hashtable env)
          Create a new instance of Axis Service (or sub classes) from a Reference object.
 Reference getServiceReference(IServiceRefDesc sr, 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 String REF_CLIENT_CONFIG
Ref name for client-config wsdd

See Also:
Constant Field Values

REF_SERVICE_WSDL

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

See Also:
Constant Field Values

REF_SERVICE_QNAME

public static final String REF_SERVICE_QNAME
Ref name for the service QName

See Also:
Constant Field Values

REF_SERVICE_PORT2WSDL

public static final 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 String REF_SERVICE_CALL_PROPS
Ref name for the service call properties

See Also:
Constant Field Values

REF_SERVICE_STUB_PROPS

public static final 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 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 Reference getServiceReference(IServiceRefDesc sr,
                                     ClassLoader cl)
                              throws WSException
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:
WSException - if wsdd cannot be load or merged

getObjectInstance

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

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


Copyright © 2010 OW2 Consortium. All Rights Reserved.