org.codehaus.xfire.service.object
Class DefaultObjectService

java.lang.Object
  extended by org.codehaus.xfire.AbstractXFireComponent
      extended by org.codehaus.xfire.service.MessageService
          extended by org.codehaus.xfire.service.object.DefaultObjectService
All Implemented Interfaces:
ObjectService, Service

public class DefaultObjectService
extends MessageService
implements ObjectService

Author:
Dan Diephouse

Field Summary
 
Fields inherited from interface org.codehaus.xfire.service.object.ObjectService
ALLOWED_METHODS, SCOPE_APPLICATION, SCOPE_REQUEST, SCOPE_SESSION, SERVICE_IMPL_CLASS
 
Fields inherited from interface org.codehaus.xfire.service.Service
ROLE
 
Constructor Summary
DefaultObjectService()
           
 
Method Summary
 void addOperation(Operation op)
           
 java.util.List getAllowedMethods()
           
 java.lang.String getEncodingStyleURI()
           
 Invoker getInvoker()
           
 Operation getOperation(java.lang.String localName)
          Get an operation.
 java.util.Collection getOperations()
          Get all the operations for this service.
protected  java.util.Map getOperationsMap()
           
 int getScope()
           
 java.lang.Class getServiceClass()
          The class which the operations map to.
 TypeMapping getTypeMapping()
          The TypeMapping for this service.
 WSDLBuilder getWSDLBuilder()
           
 WSDLWriter getWSDLWriter()
           
 boolean isAutoTyped()
           
protected  java.lang.Class loadClass(java.lang.String className)
          Load a class from the class loader.
 void setAllowedMethods(java.util.List allowedMethods)
           
 void setAutoTyped(boolean autoTyped)
           
 void setEncodingStyleURI(java.lang.String encodingStyleURI)
           
 void setInvoker(Invoker invoker)
           
 void setScope(int scope)
           
 void setServiceClass(java.lang.Class serviceClass)
           
 void setServiceClass(java.lang.String className)
           
 void setTypeMapping(TypeMapping typeMapping)
           
 void setWSDLBuilder(WSDLBuilder wsdlBuilder)
           
 
Methods inherited from class org.codehaus.xfire.service.MessageService
getDefaultNamespace, getFaultHandler, getFaultPipeline, getName, getProperty, getRequestPipeline, getResponsePipeline, getServiceHandler, getSoapVersion, getStyle, getUse, setDefaultNamespace, setFaultHandler, setFaultPipeline, setName, setProperty, setRequestPipeline, setResponsePipeline, setServiceHandler, setSoapVersion, setStyle, setUse, setWSDL, setWSDLURL, setWSDLURL, setWSDLWriter
 
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.Service
getDefaultNamespace, getFaultHandler, getFaultPipeline, getName, getProperty, getRequestPipeline, getResponsePipeline, getServiceHandler, getSoapVersion, getStyle, getUse, setProperty
 

Constructor Detail

DefaultObjectService

public DefaultObjectService()
Method Detail

setServiceClass

public void setServiceClass(java.lang.String className)
                     throws java.lang.ClassNotFoundException
Parameters:
className -
Throws:
java.lang.ClassNotFoundException

setServiceClass

public void setServiceClass(java.lang.Class serviceClass)
Parameters:
serviceClass -

addOperation

public void addOperation(Operation op)

getOperation

public Operation getOperation(java.lang.String localName)
Description copied from interface: ObjectService
Get an operation.

Specified by:
getOperation in interface ObjectService
Parameters:
localName - The name of the operation.
Returns:

getOperations

public java.util.Collection getOperations()
Description copied from interface: ObjectService
Get all the operations for this service.

Specified by:
getOperations in interface ObjectService
Returns:

getOperationsMap

protected java.util.Map getOperationsMap()

getAllowedMethods

public java.util.List getAllowedMethods()

setAllowedMethods

public void setAllowedMethods(java.util.List allowedMethods)
Parameters:
allowedMethods - The allowedMethods to set.

getTypeMapping

public TypeMapping getTypeMapping()
Description copied from interface: ObjectService
The TypeMapping for this service.

Specified by:
getTypeMapping in interface ObjectService
Returns:

setTypeMapping

public void setTypeMapping(TypeMapping typeMapping)
Parameters:
typeMapping - The typeMapping to set.

getServiceClass

public java.lang.Class getServiceClass()
Description copied from interface: ObjectService
The class which the operations map to.

Specified by:
getServiceClass in interface ObjectService
Returns:

loadClass

protected java.lang.Class loadClass(java.lang.String className)
                             throws java.lang.ClassNotFoundException
Load a class from the class loader.

Parameters:
className - The name of the class.
Returns:
The class.
Throws:
java.lang.ClassNotFoundException

getWSDLWriter

public WSDLWriter getWSDLWriter()
                         throws javax.wsdl.WSDLException
Specified by:
getWSDLWriter in interface Service
Overrides:
getWSDLWriter in class MessageService
Throws:
javax.wsdl.WSDLException
See Also:
Service.getWSDLWriter()

isAutoTyped

public boolean isAutoTyped()

setAutoTyped

public void setAutoTyped(boolean autoTyped)

getScope

public int getScope()
Specified by:
getScope in interface ObjectService

setScope

public void setScope(int scope)

getWSDLBuilder

public WSDLBuilder getWSDLBuilder()

setWSDLBuilder

public void setWSDLBuilder(WSDLBuilder wsdlBuilder)

getEncodingStyleURI

public java.lang.String getEncodingStyleURI()

setEncodingStyleURI

public void setEncodingStyleURI(java.lang.String encodingStyleURI)

getInvoker

public Invoker getInvoker()
Specified by:
getInvoker in interface ObjectService

setInvoker

public void setInvoker(Invoker invoker)
Specified by:
setInvoker in interface ObjectService