|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.service.object.ObjectServiceFactory
public class ObjectServiceFactory
Java objects-specific implementation of the ServiceFactory
interface.
Constructor Summary | |
---|---|
ObjectServiceFactory()
Initializes a new instance of the ObjectServiceFactory . |
|
ObjectServiceFactory(TransportManager transportManager,
TypeMappingRegistry registry)
Initializes a new instance of the ObjectServiceFactory with the given transport manager and type
mapping registry. |
Method Summary | |
---|---|
protected void |
addOperation(DefaultObjectService service,
java.lang.reflect.Method method)
|
Service |
create(java.lang.Class clazz)
Creates a service from the specified class. |
Service |
create(java.lang.Class clazz,
SoapVersion version,
java.lang.String style,
java.lang.String use)
Creates a service from the specified class, soap version, style and use. |
Service |
create(java.lang.Class clazz,
java.lang.String name,
java.lang.String namespace,
SoapVersion version,
java.lang.String style,
java.lang.String use,
java.lang.String encodingStyleURI)
Creates a service from the specified class and parameters. |
Service |
create(java.lang.Class clazz,
TypeMapping tm,
java.net.URL wsdlUrl)
Create a service from a WSDL file. |
protected java.lang.String |
getInParameterName(java.lang.reflect.Method method,
int paramNumber,
boolean doc)
|
protected java.lang.String |
getOutParameterName(java.lang.reflect.Method method,
boolean doc)
|
protected void |
initializeOperations(DefaultObjectService service)
|
protected void |
initializeTypeMapping(DefaultObjectService service)
Creates a type mapping for this class and registers it with the TypeMappingRegistry. |
protected boolean |
isAsync(java.lang.reflect.Method method)
|
protected boolean |
isValidMethod(java.lang.reflect.Method method)
|
protected java.lang.String |
makeServiceNameFromClassName(java.lang.Class clazz)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectServiceFactory()
ObjectServiceFactory
.
public ObjectServiceFactory(TransportManager transportManager, TypeMappingRegistry registry)
ObjectServiceFactory
with the given transport manager and type
mapping registry.
transportManager
- the transport managerregistry
- the type mapping registryMethod Detail |
---|
public Service create(java.lang.Class clazz, TypeMapping tm, java.net.URL wsdlUrl) throws java.lang.Exception
ServiceFactory
create
in interface ServiceFactory
wsdlUrl
- clazz
- The service class for the wsdl.
java.lang.Exception
public Service create(java.lang.Class clazz)
create
in interface ServiceFactory
clazz
- The service class used to populate the operations and parameters.
public Service create(java.lang.Class clazz, SoapVersion version, java.lang.String style, java.lang.String use)
null
, and will be replaced with sensible defaults if so. See the specific
parameters for more info.
create
in interface ServiceFactory
clazz
- The service class used to populate the operations and parameters.version
- The soap version. If null
, Soap11
will be used.style
- The service style. If null
, SoapConstants.STYLE_WRAPPED
will be used.use
- The service use. If null
, SoapConstants.USE_LITERAL
will be used.
SoapConstants
,
Soap11
,
Soap12
,
SoapVersion
protected java.lang.String makeServiceNameFromClassName(java.lang.Class clazz)
public Service create(java.lang.Class clazz, java.lang.String name, java.lang.String namespace, SoapVersion version, java.lang.String style, java.lang.String use, java.lang.String encodingStyleURI)
null
, and will be replaced with sensible defaults if so. See the specific
parameters for more info.
create
in interface ServiceFactory
clazz
- The service class used to populate the operations and parameters.name
- The name of the service. If null
, a name will be generated from the class
name.namespace
- The default namespace of the service. If null
, a namespace will be generated
from the class package.version
- The soap version. If null
, Soap11
will be used.style
- The service style. If null
, SoapConstants.STYLE_WRAPPED
will be
used.use
- The service use. If null
, SoapConstants.USE_LITERAL
will be used.encodingStyleURI
- The encoding style to use.
SoapConstants
,
Soap11
,
Soap12
,
SoapVersion
protected void initializeOperations(DefaultObjectService service)
protected boolean isValidMethod(java.lang.reflect.Method method)
protected void addOperation(DefaultObjectService service, java.lang.reflect.Method method)
protected boolean isAsync(java.lang.reflect.Method method)
protected java.lang.String getInParameterName(java.lang.reflect.Method method, int paramNumber, boolean doc)
protected java.lang.String getOutParameterName(java.lang.reflect.Method method, boolean doc)
protected void initializeTypeMapping(DefaultObjectService service)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |