Groovy Documentation

src.java.org.grails.xfire
Class ServiceBean

java.lang.Object
  src.java.org.grails.xfire.ServiceBean
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

class ServiceBean

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

Alternatively, the Jsr181BeanPostProcessor or the XFireExportermay be used.

see:
org.codehaus.xfire.service.Service
see:
org.codehaus.xfire.spring.Jsr181BeanPostProcessor
see:
org.codehaus.xfire.service.binding.ObjectServiceFactory
see:
org.codehaus.xfire.spring.remoting.XFireExporter
author:
Dan Diephouse
author:
Arjen Poutsma
author:
Tomasz Sztelak
@org.apache.xbean.XBean element="service"


Field Summary
private List bindings

protected boolean createDefaultBindings

Some properties to make it easier to work with ObjectServiceFactory

private java.lang.Object executor

private List faultHandlers

protected java.lang.Class implementationClass

private List inHandlers

private Invoker invoker

private static Log logger

private java.lang.String name

private java.lang.String namespace

private List operations

private List outHandlers

private Map properties

private List schemas

private java.lang.String scope

private java.lang.Object service

private ServiceFactory serviceFactory

private java.lang.Class serviceInterface

protected java.lang.String style

protected java.lang.String use

private java.lang.String wsdlURL

protected XFire xFire

private Service xfireService

 
Constructor Summary
ServiceBean()

 
Method Summary
void afterPropertiesSet()

List getBindings()

java.lang.Object getExecutor()

List getFaultHandlers()

java.lang.Class getImplementationClass()

List getInHandlers()

Invoker getInvoker()

List getMethods()

List getOutHandlers()

Map getProperties()

protected java.lang.Object getProxyForService()

List getSchemas()

java.lang.String getScope()

java.lang.Object getServiceBean()

Gets the object which backs this service.

java.lang.Class getServiceClass()

Set the service class.

ServiceFactory getServiceFactory()

java.lang.String getStyle()

java.lang.String getUse()

java.lang.String getWsdlURL()

Service getXFireService()

Gets the XFire Service created by this bean.

XFire getXfire()

protected void initializeBindings()

Use the ServiceInterface if that is set, otherwise use the Class of the service object.

boolean isCreateDefaultBindings()

void setApplicationContext(ApplicationContext ctx)

void setBindings(List bindings)

void setCreateDefaultBindings(boolean createDefaultBindings)

void setExecutor(java.lang.Object executor)

void setFaultHandlers(List faultHandlers)

void setImplementationClass(java.lang.Class implementationClass)

void setInHandlers(List inHandlers)

void setInvoker(Invoker invoker)

void setMethods(List operations)

void setName(java.lang.String name)

Sets the service name.

void setNamespace(java.lang.String namespace)

Sets the service default namespace.

void setOutHandlers(List outHandlers)

void setProperties(Map properties)

void setSchemas(List schemas)

void setScope(java.lang.String scope)

void setServiceBean(java.lang.Object service)

Sets the object which backs this service.

void setServiceClass(java.lang.Class serviceInterface)

void setServiceFactory(ServiceFactory serviceFactory)

void setStyle(java.lang.String style)

void setUse(java.lang.String use)

void setWsdlURL(java.lang.String wsdlURL)

void setXfire(XFire xFire)

 
Methods inherited from class java.lang.Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Field Detail

bindings

private List bindings


createDefaultBindings

protected boolean createDefaultBindings
Some properties to make it easier to work with ObjectServiceFactory


executor

private java.lang.Object executor


faultHandlers

private List faultHandlers


implementationClass

protected java.lang.Class implementationClass


inHandlers

private List inHandlers


invoker

private Invoker invoker


logger

private static final Log logger


name

private java.lang.String name


namespace

private java.lang.String namespace


operations

private List operations


outHandlers

private List outHandlers


properties

private Map properties


schemas

private List schemas


scope

private java.lang.String scope


service

private java.lang.Object service


serviceFactory

private ServiceFactory serviceFactory


serviceInterface

private java.lang.Class serviceInterface


style

protected java.lang.String style


use

protected java.lang.String use


wsdlURL

private java.lang.String wsdlURL


xFire

protected XFire xFire


xfireService

private Service xfireService


 
Constructor Detail

ServiceBean

ServiceBean()


 
Method Detail

afterPropertiesSet

public void afterPropertiesSet()


getBindings

public List getBindings()


getExecutor

public java.lang.Object getExecutor()


getFaultHandlers

public List getFaultHandlers()


getImplementationClass

public java.lang.Class getImplementationClass()


getInHandlers

public List getInHandlers()


getInvoker

public Invoker getInvoker()


getMethods

public List getMethods()
@org.apache.xbean.FlatCollection childElement="method"
return:


getOutHandlers

public List getOutHandlers()


getProperties

public Map getProperties()
@org.xbean.Map entryName="property" keyName="key"
return:


getProxyForService

protected java.lang.Object getProxyForService()
return:


getSchemas

public List getSchemas()


getScope

public java.lang.String getScope()


getServiceBean

public java.lang.Object getServiceBean()
Gets the object which backs this service.
return:


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.
return:


getServiceFactory

public ServiceFactory getServiceFactory()


getStyle

public java.lang.String getStyle()


getUse

public java.lang.String getUse()


getWsdlURL

public java.lang.String getWsdlURL()


getXFireService

public Service getXFireService()
Gets the XFire Service created by this bean.
return:
@see Service


getXfire

public XFire getXfire()


initializeBindings

protected void initializeBindings()
Use the ServiceInterface if that is set, otherwise use the Class of the service object.


isCreateDefaultBindings

public boolean isCreateDefaultBindings()


setApplicationContext

public void setApplicationContext(ApplicationContext ctx)


setBindings

public void setBindings(List bindings)


setCreateDefaultBindings

public void setCreateDefaultBindings(boolean createDefaultBindings)


setExecutor

public void setExecutor(java.lang.Object executor)


setFaultHandlers

public void setFaultHandlers(List faultHandlers)


setImplementationClass

public void setImplementationClass(java.lang.Class implementationClass)


setInHandlers

public void setInHandlers(List inHandlers)


setInvoker

public void setInvoker(Invoker invoker)


setMethods

public void setMethods(List operations)


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 #getServiceClass() service interface.


setOutHandlers

public void setOutHandlers(List outHandlers)


setProperties

public void setProperties(Map properties)


setSchemas

public void setSchemas(List schemas)


setScope

public void setScope(java.lang.String scope)


setServiceBean

public void setServiceBean(java.lang.Object service)
Sets the object which backs this service.
return:


setServiceClass

public void setServiceClass(java.lang.Class serviceInterface)


setServiceFactory

public void setServiceFactory(ServiceFactory serviceFactory)


setStyle

public void setStyle(java.lang.String style)


setUse

public void setUse(java.lang.String use)


setWsdlURL

public void setWsdlURL(java.lang.String wsdlURL)


setXfire

public void setXfire(XFire xFire)


 

Groovy Documentation