|
||||||||||
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.
Field Summary | |
---|---|
static java.lang.String |
ALLOW_INTERFACE
|
Fields inherited from class org.codehaus.xfire.service.binding.ObjectServiceFactory |
---|
CREATE_DEFAULT_BINDINGS, PORT_NAME, PORT_TYPE, SCHEMAS, SCOPE, SOAP11_TRANSPORTS, SOAP12_TRANSPORTS, STYLE, USE |
Constructor Summary | |
---|---|
AnnotationServiceFactory()
Creates an AnnotationServiceFactory which uses the most appropriate annotations implementation - commons-attributes on Java 1.4 and Java 5 attributes on Java 5 JVMs. |
|
AnnotationServiceFactory(org.codehaus.xfire.transport.TransportManager transportManager)
Creates an AnnotationServiceFactory which uses the most appropriate annotations implementation - commons-attributes on Java 1.4 and Java 5 attributes on Java 5 JVMs. |
|
AnnotationServiceFactory(org.codehaus.xfire.transport.TransportManager transportManager,
org.codehaus.xfire.aegis.type.Configuration config)
|
|
AnnotationServiceFactory(WebAnnotations webAnnotations,
org.codehaus.xfire.transport.TransportManager transportManager)
|
|
AnnotationServiceFactory(WebAnnotations webAnnotations,
org.codehaus.xfire.transport.TransportManager transportManager,
org.codehaus.xfire.service.binding.BindingProvider provider)
Initializes a new instance of the AnnotationServiceFactory with the given annotations facade,
transport manager and type mapping registry. |
Method Summary | |
---|---|
org.codehaus.xfire.service.Service |
create(java.lang.Class clazz,
javax.xml.namespace.QName name,
java.net.URL wsdlUrl,
java.util.Map properties)
|
org.codehaus.xfire.service.Service |
create(java.lang.Class clazz,
java.lang.String name,
java.lang.String namespace,
java.util.Map properties)
Creates a service from the specified class. |
protected java.lang.String |
createPortType(java.lang.String name,
WebServiceAnnotation webServiceAnnotation)
|
protected java.lang.String |
createServiceName(java.lang.Class clazz,
WebServiceAnnotation webServiceAnnotation,
java.lang.String current)
|
protected java.lang.String |
createServiceNamespace(java.lang.Class clazz,
WebServiceAnnotation webServiceAnnotation,
java.lang.String current)
|
protected WebAnnotations |
getAnnotations()
|
AnnotationsValidator |
getValidator()
|
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. |
void |
setValidator(AnnotationsValidator validator)
|
Methods inherited from class org.codehaus.xfire.service.binding.ObjectServiceFactory |
---|
addFault, addIgnoredMethods, addOperation, addSoap11Transport, addSoap12Transport, configureHeaders, create, create, create, create, createBindingOperation, createBindings, createDocumentationProvider, createEndpoint, createInputMessageName, createOutputMessageName, createSoap11Binding, createSoap12Binding, createSoapBinding, getAction, getBindingProvider, getCustomTypesMapping, getDocumentationProvider, getFaultName, getIgnoredClasses, getInParameterName, getMEP, getOperationName, getOutParameterName, getSerializer, getServiceConfigurations, getSoap11Transports, getSoap12Transports, getStyle, getTargetNamespace, getTransportManager, getUse, getWsdlBuilderFactory, hasOutMessage, initializeFaults, initializeOperations, isAsync, isBindingCreationEnabled, isCustomFaultsEnabled, isFaultInfoClass, isHeader, isInParam, isOutParam, isValidMethod, isVoidOneWay, makeServiceNameFromClassName, registerHandlers, setBindingCreationEnabled, setBindingProvider, setCustomFaultsEnabled, setCustomTypesMapping, setDocumentationProvider, setServiceConfigurations, 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 |
Field Detail |
---|
public static final java.lang.String ALLOW_INTERFACE
Constructor Detail |
---|
public AnnotationServiceFactory()
The TransportManager
is retrieved from the XFireFactory
.
public AnnotationServiceFactory(org.codehaus.xfire.transport.TransportManager transportManager)
public AnnotationServiceFactory(org.codehaus.xfire.transport.TransportManager transportManager, org.codehaus.xfire.aegis.type.Configuration config)
public AnnotationServiceFactory(WebAnnotations webAnnotations, org.codehaus.xfire.transport.TransportManager transportManager)
public AnnotationServiceFactory(WebAnnotations webAnnotations, org.codehaus.xfire.transport.TransportManager transportManager, org.codehaus.xfire.service.binding.BindingProvider provider)
AnnotationServiceFactory
with the given annotations facade,
transport manager and type mapping registry.
webAnnotations
- the annotations facadetransportManager
- the transport managerprovider
- the registryMethod Detail |
---|
protected WebAnnotations getAnnotations()
public org.codehaus.xfire.service.Service create(java.lang.Class clazz, java.lang.String name, java.lang.String namespace, 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 org.codehaus.xfire.service.ServiceFactory
create
in class org.codehaus.xfire.service.binding.ObjectServiceFactory
clazz
- The service class used to populate the operations and
parameters.
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, java.lang.String current)
protected java.lang.String createServiceName(java.lang.Class clazz, WebServiceAnnotation webServiceAnnotation, java.lang.String current)
protected java.lang.String createPortType(java.lang.String name, WebServiceAnnotation webServiceAnnotation)
public org.codehaus.xfire.service.Service create(java.lang.Class clazz, javax.xml.namespace.QName name, java.net.URL wsdlUrl, java.util.Map properties)
create
in interface org.codehaus.xfire.service.ServiceFactory
create
in class org.codehaus.xfire.service.binding.ObjectServiceFactory
public AnnotationsValidator getValidator()
public void setValidator(AnnotationsValidator validator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |