|
||||||||||
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(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(TransportManager transportManager,
Configuration config)
|
|
AnnotationServiceFactory(WebAnnotations webAnnotations,
TransportManager transportManager)
|
|
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,
javax.xml.namespace.QName name,
java.net.URL wsdlUrl,
java.util.Map properties)
Creates a service via create(Class) . |
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 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 |
Field Detail |
---|
public static final java.lang.String ALLOW_INTERFACE
Constructor Detail |
---|
public AnnotationServiceFactory()
The TransportManager
is retrieved from the XFireFactory
.
public AnnotationServiceFactory(TransportManager transportManager)
public AnnotationServiceFactory(TransportManager transportManager, Configuration config)
public AnnotationServiceFactory(WebAnnotations webAnnotations, TransportManager transportManager)
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 |
---|
protected WebAnnotations getAnnotations()
public 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 ServiceFactory
create
in class ObjectServiceFactory
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.properties
- Service specific properties which the ServiceFactory will use
to create the service.
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 Service create(java.lang.Class clazz, javax.xml.namespace.QName name, java.net.URL wsdlUrl, java.util.Map properties)
ObjectServiceFactory
create(Class)
. It then configures
the bindings and endpoints on the service via the WSDL.
create
in interface ServiceFactory
create
in class ObjectServiceFactory
clazz
- The service class for the wsdl.wsdlUrl
- The WSDL URL.
public AnnotationsValidator getValidator()
public void setValidator(AnnotationsValidator validator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |