|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.service.object.ObjectServiceFactory
org.codehaus.xfire.annotations.AnnotationServiceFactory
public class AnnotationServiceFactory
Annotations-bases implementation of the ServiceFactory
interface.
Constructor Summary | |
---|---|
AnnotationServiceFactory(WebAnnotations webAnnotations,
TransportManager transportManager,
TypeMappingRegistry registry)
Initializes a new instance of the AnnotationServiceFactory with the given annotations facade,
transport manager and type mapping registry. |
Method Summary | |
---|---|
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. |
protected java.lang.String |
createPortType(java.lang.String serviceName,
WebServiceAnnotation webServiceAnnotation)
|
protected java.lang.String |
createServiceName(java.lang.Class clazz,
WebServiceAnnotation webServiceAnnotation)
|
protected java.lang.String |
createServiceNamespace(java.lang.Class clazz,
WebServiceAnnotation webServiceAnnotation)
|
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 boolean |
isAsync(java.lang.reflect.Method method)
|
protected boolean |
isValidMethod(java.lang.reflect.Method method)
Returns true if the specified method is valid for a SOAP operation. |
protected java.lang.Class |
loadClass(java.lang.String endpointInterface)
Attempt to load a class first from this class's ClassLoader, then from the context classloader. |
Methods inherited from class org.codehaus.xfire.service.object.ObjectServiceFactory |
---|
addOperation, create, create, initializeOperations, initializeTypeMapping, makeServiceNameFromClassName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.xfire.service.ServiceFactory |
---|
create, create |
Constructor Detail |
---|
public AnnotationServiceFactory(WebAnnotations webAnnotations, TransportManager transportManager, TypeMappingRegistry registry)
AnnotationServiceFactory
with the given annotations facade,
transport manager and type mapping registry.
webAnnotations
- the annotations facadetransportManager
- the transport managerregistry
- the registryMethod Detail |
---|
public Service create(java.lang.Class clazz)
SOAPBindingAnnotation
, it will be used to
define the style and use of the service. Otherwise, the default
behaviour
will be used.
create
in interface ServiceFactory
create
in class ObjectServiceFactory
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)
WebServiceAnnotation
, it will be used to define the name, service name, target namespace. If the annotation
defines an endpoint interface, all methods of that interface are exposed as operations. If no endpoint interface
is defined, all methods that have the WebMethodAnnotation
are exposed.
create
in interface ServiceFactory
create
in class ObjectServiceFactory
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.Class loadClass(java.lang.String endpointInterface) throws java.lang.ClassNotFoundException
endpointInterface
-
java.lang.ClassNotFoundException
protected java.lang.String createServiceNamespace(java.lang.Class clazz, WebServiceAnnotation webServiceAnnotation)
protected java.lang.String createServiceName(java.lang.Class clazz, WebServiceAnnotation webServiceAnnotation)
protected java.lang.String createPortType(java.lang.String serviceName, WebServiceAnnotation webServiceAnnotation)
protected boolean isValidMethod(java.lang.reflect.Method method)
true
if the specified method is valid for a SOAP operation.
isValidMethod
in class ObjectServiceFactory
method
- the method.
true
if valid; false
otherwise.protected java.lang.String getInParameterName(java.lang.reflect.Method method, int paramNumber, boolean doc)
getInParameterName
in class ObjectServiceFactory
protected java.lang.String getOutParameterName(java.lang.reflect.Method method, boolean doc)
getOutParameterName
in class ObjectServiceFactory
protected boolean isAsync(java.lang.reflect.Method method)
isAsync
in class ObjectServiceFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |