|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.service.binding.ObjectServiceFactory
public class ObjectServiceFactory
Java objects-specific implementation of the ServiceFactory
interface.
Constructor Summary | |
---|---|
ObjectServiceFactory()
Initializes a new instance of the ObjectServiceFactory . |
|
ObjectServiceFactory(TransportManager transportManager)
|
|
ObjectServiceFactory(TransportManager transportManager,
BindingProvider provider)
Initializes a new instance of the ObjectServiceFactory with the given transport manager and type
mapping registry. |
Method Summary | |
---|---|
void |
addIgnoredMethods(java.lang.String className)
Ignore the specified class' declared methods. |
protected void |
addOperation(Service endpoint,
java.lang.reflect.Method method)
|
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,
java.lang.String name,
java.lang.String namespace,
java.util.Map properties)
Creates a service from the specified class, soap version, style and use. |
Service |
create(java.lang.Class clazz,
java.lang.String name,
java.lang.String namespace,
SoapVersion version,
java.lang.String style,
java.lang.String use,
java.util.Map properties)
|
Service |
create(java.lang.Class clazz,
java.net.URL wsdlUrl)
Create a service from a WSDL file. |
protected java.lang.String |
getAction(OperationInfo op)
|
BindingProvider |
getBindingProvider()
|
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 java.lang.String |
getOperationName(ServiceInfo service,
java.lang.reflect.Method method)
Creates a name for the operation from the method name. |
protected javax.xml.namespace.QName |
getOutParameterName(Service endpoint,
java.lang.reflect.Method method,
boolean doc)
|
SoapVersion |
getSoapVersion()
|
java.lang.String |
getStyle()
|
TransportManager |
getTransportManager()
|
java.lang.String |
getUse()
|
WSDLBuilderFactory |
getWsdlBuilderFactory()
|
protected void |
initializeOperations(Service endpoint)
|
protected boolean |
isAsync(java.lang.reflect.Method method)
|
protected boolean |
isHeader(java.lang.reflect.Method method,
int j)
|
protected boolean |
isValidMethod(java.lang.reflect.Method method)
|
boolean |
isVoidOneWay()
|
protected java.lang.String |
makeServiceNameFromClassName(java.lang.Class clazz)
|
protected void |
registerHandlers(Service service)
|
void |
setBindingProvider(BindingProvider bindingProvider)
|
void |
setSoapVersion(SoapVersion soapVersion)
|
void |
setStyle(java.lang.String style)
|
void |
setTransportManager(TransportManager transportManager)
|
void |
setUse(java.lang.String use)
|
void |
setVoidOneWay(boolean voidOneWay)
|
void |
setWsdlBuilderFactory(WSDLBuilderFactory wsdlBuilderFactory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectServiceFactory()
ObjectServiceFactory
.
public ObjectServiceFactory(TransportManager transportManager, BindingProvider provider)
ObjectServiceFactory
with the given transport manager and type
mapping registry.
transportManager
- the transport managerprovider
- the binding providerpublic ObjectServiceFactory(TransportManager transportManager)
Method Detail |
---|
public BindingProvider getBindingProvider()
public Service create(java.lang.Class clazz, java.net.URL wsdlUrl) throws java.lang.Exception
ServiceFactory
create
in interface ServiceFactory
wsdlUrl
- clazz
- The service class for the wsdl.
java.lang.Exception
public Service create(java.lang.Class clazz)
create
in interface ServiceFactory
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 Service.setProperty(String, Object)
with the
property key being
ObjectInvoker.SERVICE_IMPL_CLASS
public Service create(java.lang.Class clazz, java.util.Map properties)
create
in interface ServiceFactory
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 Service.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, java.lang.String name, java.lang.String namespace, java.util.Map properties)
null
, and will be replaced with sensible defaults if so. See the specific
parameters for more info.
create
in interface ServiceFactory
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.String makeServiceNameFromClassName(java.lang.Class clazz)
public Service create(java.lang.Class clazz, java.lang.String name, java.lang.String namespace, SoapVersion version, java.lang.String style, java.lang.String use, java.util.Map properties)
protected void registerHandlers(Service service)
protected void initializeOperations(Service endpoint)
public void addIgnoredMethods(java.lang.String className)
java.lang.Object
org.omg.CORBA_2_3.portable.ObjectImpl
org.omg.CORBA.portable.ObjectImpl
javax.ejb.EJBObject
javax.ejb.EJBLocalObject
javax.rmi.CORBA.Stub
className
- the fully qualified class nameprotected boolean isValidMethod(java.lang.reflect.Method method)
protected void addOperation(Service endpoint, java.lang.reflect.Method method)
protected java.lang.String getAction(OperationInfo op)
protected boolean isHeader(java.lang.reflect.Method method, int j)
protected java.lang.String getOperationName(ServiceInfo service, java.lang.reflect.Method method)
doSomething
, the first one will have an operation name of
"doSomething" and the second "doSomething1".
service
- method
-
protected java.lang.String getMEP(java.lang.reflect.Method method)
protected boolean isAsync(java.lang.reflect.Method method)
protected javax.xml.namespace.QName getInParameterName(Service endpoint, java.lang.reflect.Method method, int paramNumber, boolean doc)
protected javax.xml.namespace.QName getOutParameterName(Service endpoint, java.lang.reflect.Method method, boolean doc)
public TransportManager getTransportManager()
public void setTransportManager(TransportManager transportManager)
public void setBindingProvider(BindingProvider bindingProvider)
public java.lang.String getStyle()
public void setStyle(java.lang.String style)
public java.lang.String getUse()
public void setUse(java.lang.String use)
public SoapVersion getSoapVersion()
public void setSoapVersion(SoapVersion soapVersion)
public boolean isVoidOneWay()
public void setVoidOneWay(boolean voidOneWay)
public WSDLBuilderFactory getWsdlBuilderFactory()
public void setWsdlBuilderFactory(WSDLBuilderFactory wsdlBuilderFactory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |