|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.service.binding.ObjectServiceFactory
org.codehaus.xfire.annotations.AnnotationServiceFactory
public class AnnotationServiceFactory
Annotations-bases implementation of the ServiceFactory
interface.
Constructor Summary | |
---|---|
AnnotationServiceFactory(WebAnnotations webAnnotations,
TransportManager transportManager,
BindingProvider provider)
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,
java.util.Map properties)
Creates a service from the specified class. |
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 |
getAction(OperationInfo op)
|
protected javax.xml.namespace.QName |
getInParameterName(Service endpoint,
java.lang.reflect.Method method,
int paramNumber,
boolean doc)
|
protected java.lang.String |
getMEP(java.lang.reflect.Method method)
|
protected javax.xml.namespace.QName |
getOutParameterName(Service endpoint,
java.lang.reflect.Method method,
boolean doc)
|
protected boolean |
isAsync(java.lang.reflect.Method method)
|
protected boolean |
isHeader(java.lang.reflect.Method method,
int paramNumber)
|
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.binding.ObjectServiceFactory |
---|
addIgnoredMethods, addOperation, create, create, create, create, getBindingProvider, getOperationName, getSoapVersion, getStyle, getTransportManager, getUse, getWsdlBuilderFactory, initializeOperations, isVoidOneWay, makeServiceNameFromClassName, registerHandlers, setBindingProvider, setSoapVersion, setStyle, setTransportManager, setUse, setVoidOneWay, setWsdlBuilderFactory |
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, create |
Constructor Detail |
---|
public AnnotationServiceFactory(WebAnnotations webAnnotations, TransportManager transportManager, BindingProvider provider)
AnnotationServiceFactory
with the given annotations facade,
transport manager and type mapping registry.
webAnnotations
- the annotations facadetransportManager
- the transport managerprovider
- the registryMethod Detail |
---|
public Service create(java.lang.Class clazz, java.util.Map properties)
SOAPBindingAnnotation
, it will be used to define the style and
use of the service. If the class has a 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.properties
- Properties to set on the service and use in construction.
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 java.lang.String getAction(OperationInfo op)
getAction
in class ObjectServiceFactory
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 boolean isHeader(java.lang.reflect.Method method, int paramNumber)
isHeader
in class ObjectServiceFactory
protected javax.xml.namespace.QName getInParameterName(Service endpoint, java.lang.reflect.Method method, int paramNumber, boolean doc)
getInParameterName
in class ObjectServiceFactory
protected javax.xml.namespace.QName getOutParameterName(Service endpoint, java.lang.reflect.Method method, boolean doc)
getOutParameterName
in class ObjectServiceFactory
protected boolean isAsync(java.lang.reflect.Method method)
isAsync
in class ObjectServiceFactory
protected java.lang.String getMEP(java.lang.reflect.Method method)
getMEP
in class ObjectServiceFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |