|
||||||||||
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.picocontainer.PicoObjectServiceFactory
public class PicoObjectServiceFactory
PicoContainer specialization of Java objects-specific implementation of the
ServiceFactory
interface which uses a given picocontainer to pick
service objects instance when it's about to invoke them.
Field Summary |
---|
Fields inherited from class org.codehaus.xfire.service.binding.ObjectServiceFactory |
---|
CREATE_DEFAULT_BINDINGS, PORT_TYPE, SCHEMAS, SCOPE, SOAP11_TRANSPORTS, SOAP12_TRANSPORTS, STYLE, USE |
Constructor Summary | |
---|---|
PicoObjectServiceFactory(PicoContainer pico)
|
|
PicoObjectServiceFactory(PicoContainer pico,
TransportManager transportManager,
BindingProvider provider)
|
|
PicoObjectServiceFactory(ScopePolicy scope,
ObjectReference picoReference)
To create a PicoObjectServiceFactory. |
|
PicoObjectServiceFactory(ScopePolicy scope,
ObjectReference picoReference,
TransportManager transportManager,
BindingProvider provider)
Create a PicoObjectServiceFactory object. |
Method Summary | |
---|---|
Service |
create(java.lang.Class clazz)
Creates a service from the specified class. |
Service |
create(java.lang.Class clazz,
java.util.Map properties)
Creates a service from the specified class. |
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, soap version, style and use. |
static ScopePolicy |
getDefaultScope()
Get the default scope policy when no scope policy is specified. |
protected Service |
prepare(Service endpoint)
Prepare an ObjectService to use pico. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PicoObjectServiceFactory(PicoContainer pico)
public PicoObjectServiceFactory(ScopePolicy scope, ObjectReference picoReference)
scope
- the scope policy.picoReference
- the reference to pico container.public PicoObjectServiceFactory(PicoContainer pico, TransportManager transportManager, BindingProvider provider)
public PicoObjectServiceFactory(ScopePolicy scope, ObjectReference picoReference, TransportManager transportManager, BindingProvider provider)
scope
- the scope policy.picoReference
- the reference to pico container.transportManager
- the transport manager.provider
- the binding provider.Method Detail |
---|
public Service create(java.lang.Class clazz, java.lang.String name, java.lang.String namespace, java.util.Map properties)
ObjectServiceFactory
null
, and will be replaced with sensible defaults if so. See the specific
parameters for more info.
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.
public Service create(java.lang.Class clazz, java.util.Map properties)
ObjectServiceFactory
create
in interface ServiceFactory
create
in class ObjectServiceFactory
clazz
- The service class used to populate the operations and
parameters. If the class is an interface, then the
implementation class that implements that interface must be
set via AbstractContext.setProperty(String, Object)
with the
property key being
ObjectInvoker.SERVICE_IMPL_CLASS
properties
- Properties to set on the service and use in construction.
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 Service create(java.lang.Class clazz)
ObjectServiceFactory
create
in interface ServiceFactory
create
in class ObjectServiceFactory
clazz
- The service class used to populate the operations and
parameters. If the class is an interface, then the
implementation class that implements that interface must be
set via AbstractContext.setProperty(String, Object)
with the
property key being
ObjectInvoker.SERVICE_IMPL_CLASS
protected Service prepare(Service endpoint)
public static ScopePolicy getDefaultScope()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |