java.lang.Object
javax.xml.rpc.ServiceFactory
org.apache.axis.client.ServiceFactory
- All Implemented Interfaces:
- javax.naming.spi.ObjectFactory
- public class ServiceFactory
- extends javax.xml.rpc.ServiceFactory
- implements javax.naming.spi.ObjectFactory
Helper class for obtaining Services from JNDI.
!!! WORK IN PROGRESS
|
Method Summary |
javax.xml.rpc.Service |
createService(javax.xml.namespace.QName serviceName)
Create a Service instance. |
private Service |
createService(java.lang.String serviceImplementationName)
|
javax.xml.rpc.Service |
createService(java.net.URL wsdlDocumentLocation,
javax.xml.namespace.QName serviceName)
Create a Service instance. |
private static org.apache.axis.EngineConfiguration |
getDefaultEngineConfig()
|
java.lang.Object |
getObjectInstance(java.lang.Object refObject,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
|
static Service |
getService(java.util.Map environment)
Obtain an AxisClient reference, using JNDI if possible, otherwise
creating one using the standard Axis configuration pattern. |
javax.xml.rpc.Service |
loadService(java.lang.Class serviceInterface)
Create an instance of the generated service implementation class
for a given service interface, if available. |
javax.xml.rpc.Service |
loadService(java.net.URL wsdlDocumentLocation,
java.lang.Class serviceInterface,
java.util.Properties properties)
Create an instance of the generated service implementation class
for a given service interface, if available. |
javax.xml.rpc.Service |
loadService(java.net.URL wsdlDocumentLocation,
javax.xml.namespace.QName serviceName,
java.util.Properties properties)
Create an instance of the generated service implementation class
for a given service, if available. |
static void |
setThreadDefaultConfig(org.apache.axis.EngineConfiguration config)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE_CLASSNAME
public static final java.lang.String SERVICE_CLASSNAME
- See Also:
- Constant Field Values
WSDL_LOCATION
public static final java.lang.String WSDL_LOCATION
- See Also:
- Constant Field Values
MAINTAIN_SESSION
public static final java.lang.String MAINTAIN_SESSION
- See Also:
- Constant Field Values
SERVICE_NAMESPACE
public static final java.lang.String SERVICE_NAMESPACE
- See Also:
- Constant Field Values
SERVICE_LOCAL_PART
public static final java.lang.String SERVICE_LOCAL_PART
- See Also:
- Constant Field Values
SERVICE_IMPLEMENTATION_NAME_PROPERTY
public static final java.lang.String SERVICE_IMPLEMENTATION_NAME_PROPERTY
- See Also:
- Constant Field Values
SERVICE_IMPLEMENTATION_SUFFIX
private static final java.lang.String SERVICE_IMPLEMENTATION_SUFFIX
- See Also:
- Constant Field Values
_defaultEngineConfig
private static org.apache.axis.EngineConfiguration _defaultEngineConfig
threadDefaultConfig
private static java.lang.ThreadLocal threadDefaultConfig
ServiceFactory
public ServiceFactory()
setThreadDefaultConfig
public static void setThreadDefaultConfig(org.apache.axis.EngineConfiguration config)
getDefaultEngineConfig
private static org.apache.axis.EngineConfiguration getDefaultEngineConfig()
getService
public static Service getService(java.util.Map environment)
- Obtain an AxisClient reference, using JNDI if possible, otherwise
creating one using the standard Axis configuration pattern. If we
end up creating one and do have JNDI access, bind it to the passed
name so we find it next time.
getObjectInstance
public java.lang.Object getObjectInstance(java.lang.Object refObject,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
throws java.lang.Exception
- Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
createService
public javax.xml.rpc.Service createService(java.net.URL wsdlDocumentLocation,
javax.xml.namespace.QName serviceName)
throws javax.xml.rpc.ServiceException
- Create a Service instance.
createService
public javax.xml.rpc.Service createService(javax.xml.namespace.QName serviceName)
throws javax.xml.rpc.ServiceException
- Create a Service instance. Since the WSDL file is not provided
here, the Service object returned is quite simpleminded.
Likewise, the Call object that service.createCall will return
will also be simpleminded. The caller must explicitly fill in
all the info on the Call object (ie., endpoint address, etc.).
loadService
public javax.xml.rpc.Service loadService(java.lang.Class serviceInterface)
throws javax.xml.rpc.ServiceException
- Create an instance of the generated service implementation class
for a given service interface, if available.
loadService
public javax.xml.rpc.Service loadService(java.net.URL wsdlDocumentLocation,
java.lang.Class serviceInterface,
java.util.Properties properties)
throws javax.xml.rpc.ServiceException
- Create an instance of the generated service implementation class
for a given service interface, if available.
An implementation may use the provided wsdlDocumentLocation and properties
to help locate the generated implementation class.
If no such class is present, a ServiceException will be thrown.
loadService
public javax.xml.rpc.Service loadService(java.net.URL wsdlDocumentLocation,
javax.xml.namespace.QName serviceName,
java.util.Properties properties)
throws javax.xml.rpc.ServiceException
- Create an instance of the generated service implementation class
for a given service, if available.
The service is uniquely identified by the wsdlDocumentLocation and serviceName arguments.
An implementation may use the provided properties to help locate the generated implementation class.
If no such class is present, a ServiceException will be thrown.
createService
private Service createService(java.lang.String serviceImplementationName)
throws javax.xml.rpc.ServiceException