jfun.yan.xfire
Class ServiceBean

java.lang.Object
  extended by jfun.yan.xfire.ServiceBean

public class ServiceBean
extends java.lang.Object

A convenience bean which creates a Service from a ServiceFactory instance. If there is no ServiceFactory set, ServiceBean will create one from the ObjectServiceFactory.


Constructor Summary
ServiceBean()
           
 
Method Summary
 org.codehaus.xfire.service.Service buildService()
           
protected  void copyProperties(java.util.Map properties)
           
 java.util.List getFaultHandlers()
           
 java.lang.Class getImplementationClass()
           
 java.util.List getInHandlers()
           
 java.util.List getOutHandlers()
           
 java.util.List getProperties()
           
 java.util.List getSchemas()
           
 ScopePolicy getScope()
           
 Factory getServant()
          Gets the Factory that creates the servant object who backs this service.
 java.lang.Class getServiceClass()
          Set the service class.
 org.codehaus.xfire.service.ServiceFactory getServiceFactory()
           
 org.codehaus.xfire.soap.SoapVersion getSoapVersion()
           
 java.lang.String getStyle()
           
 java.lang.String getUse()
           
 org.codehaus.xfire.XFire getXfire()
           
 void setFaultHandlers(java.util.List faultHandlers)
           
 void setImplementationClass(java.lang.Class implementationClass)
           
 void setInHandlers(java.util.List inHandlers)
           
 void setName(java.lang.String name)
          Sets the service name.
 void setNamespace(java.lang.String namespace)
          Sets the service default namespace.
 void setOutHandlers(java.util.List outHandlers)
           
 void setProperties(java.util.List properties)
           
 void setSchemas(java.util.List schemas)
           
 void setScope(ScopePolicy scope)
           
 void setServant(Factory servant)
          Sets the Factory object that creates the servant object who backs up the service.
 void setServiceClass(java.lang.Class serviceInterface)
           
 void setServiceFactory(org.codehaus.xfire.service.ServiceFactory serviceFactory)
           
 void setSoapVersion(org.codehaus.xfire.soap.SoapVersion soapVersion)
           
 void setStyle(java.lang.String style)
           
 void setUse(java.lang.String use)
           
 void setXfire(org.codehaus.xfire.XFire xFire)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceBean

public ServiceBean()
Method Detail

buildService

public org.codehaus.xfire.service.Service buildService()

getServant

public Factory getServant()
Gets the Factory that creates the servant object who backs this service.

Returns:
the Factory that creates the servant object.

setServant

public void setServant(Factory servant)
Sets the Factory object that creates the servant object who backs up the service.


getServiceClass

public java.lang.Class getServiceClass()
Set the service class. The service class is passed to the ServiceFactory's create method and is used to determine the operations on the service.

Returns:
the service class.

setServiceClass

public void setServiceClass(java.lang.Class serviceInterface)

setServiceFactory

public void setServiceFactory(org.codehaus.xfire.service.ServiceFactory serviceFactory)

getServiceFactory

public org.codehaus.xfire.service.ServiceFactory getServiceFactory()

setName

public void setName(java.lang.String name)
Sets the service name. Default is the bean name of this exporter.


setNamespace

public void setNamespace(java.lang.String namespace)
Sets the service default namespace. Default is a namespace based on the package of the service interface.


getFaultHandlers

public java.util.List getFaultHandlers()

setFaultHandlers

public void setFaultHandlers(java.util.List faultHandlers)

getInHandlers

public java.util.List getInHandlers()

setInHandlers

public void setInHandlers(java.util.List inHandlers)

getOutHandlers

public java.util.List getOutHandlers()

setOutHandlers

public void setOutHandlers(java.util.List outHandlers)

setXfire

public void setXfire(org.codehaus.xfire.XFire xFire)

getXfire

public org.codehaus.xfire.XFire getXfire()

getImplementationClass

public java.lang.Class getImplementationClass()

setImplementationClass

public void setImplementationClass(java.lang.Class implementationClass)

getProperties

public java.util.List getProperties()

setProperties

public void setProperties(java.util.List properties)

getScope

public ScopePolicy getScope()

setScope

public void setScope(ScopePolicy scope)

getStyle

public java.lang.String getStyle()

setStyle

public void setStyle(java.lang.String style)

getUse

public java.lang.String getUse()

setUse

public void setUse(java.lang.String use)

getSoapVersion

public org.codehaus.xfire.soap.SoapVersion getSoapVersion()

setSoapVersion

public void setSoapVersion(org.codehaus.xfire.soap.SoapVersion soapVersion)

getSchemas

public java.util.List getSchemas()

setSchemas

public void setSchemas(java.util.List schemas)

copyProperties

protected void copyProperties(java.util.Map properties)