org.codehaus.xfire.java
Class DefaultJavaService

java.lang.Object
  extended by org.codehaus.xfire.AbstractXFireComponent
      extended by org.codehaus.xfire.service.SimpleService
          extended by org.codehaus.xfire.java.DefaultJavaService
All Implemented Interfaces:
JavaService, org.codehaus.xfire.service.Service

public class DefaultJavaService
extends org.codehaus.xfire.service.SimpleService
implements JavaService

Author:
Dan Diephouse

Field Summary
protected static java.lang.String ALLOWED_METHODS
           
protected static java.lang.String SERVICE_CLASS
           
 
Fields inherited from interface org.codehaus.xfire.java.JavaService
SCOPE_APPLICATION, SCOPE_REQUEST, SCOPE_SESSION
 
Fields inherited from interface org.codehaus.xfire.service.Service
ROLE
 
Constructor Summary
DefaultJavaService()
           
 
Method Summary
 java.lang.Object createServiceObject()
           
 java.util.List getAllowedMethods()
           
 Operation getOperation(java.lang.String localName, java.lang.String namespace)
           
 java.util.Collection getOperations()
           
 int getScope()
           
 java.lang.Class getServiceClass()
           
 java.lang.Object getServiceObject(org.codehaus.xfire.MessageContext context)
          Creates and returns a service object depending on the scope.
 TypeMapping getTypeMapping()
           
 TypeMappingRegistry getTypeMappingRegistry()
           
 void initialize()
           
 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 setScope(int scope)
           
 void setServiceClass(java.lang.String className)
           
 void setTypeMapping(TypeMapping typeMapping)
           
 void setTypeMappingRegistry(TypeMappingRegistry typeMappingRegistry)
           
 
Methods inherited from class org.codehaus.xfire.service.SimpleService
getDefaultNamespace, getFaultHandler, getName, getProperty, getServiceHandler, getSoapVersion, getStyle, getUse, getWSDL, getWSDLBuilder, getWSDLURL, setDefaultNamespace, setFaultHandler, setName, setProperty, setServiceHandler, setSoapVersion, setStyle, setUse, setWSDL, setWSDLBuilder, setWSDLURL
 
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, getName, getProperty, getServiceHandler, getSoapVersion, getStyle, getUse, getWSDL, setProperty
 

Field Detail

SERVICE_CLASS

protected static final java.lang.String SERVICE_CLASS
See Also:
Constant Field Values

ALLOWED_METHODS

protected static final java.lang.String ALLOWED_METHODS
See Also:
Constant Field Values
Constructor Detail

DefaultJavaService

public DefaultJavaService()
Method Detail

setServiceClass

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

getOperation

public Operation getOperation(java.lang.String localName,
                              java.lang.String namespace)
Specified by:
getOperation in interface JavaService
See Also:
JavaService.getOperation(java.lang.String, java.lang.String)

getOperations

public java.util.Collection getOperations()
Specified by:
getOperations in interface JavaService
See Also:
JavaService.getOperations()

getAllowedMethods

public java.util.List getAllowedMethods()
Specified by:
getAllowedMethods in interface JavaService
Returns:
Returns the allowedMethods.

setAllowedMethods

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

getTypeMapping

public TypeMapping getTypeMapping()
Specified by:
getTypeMapping in interface JavaService
Returns:
Returns the typeMapping.

setTypeMapping

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

getServiceClass

public java.lang.Class getServiceClass()
Specified by:
getServiceClass in interface JavaService
Returns:

loadClass

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

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

initialize

public void initialize()
                throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
org.apache.avalon.framework.activity.Initializable#initialize()

getServiceObject

public java.lang.Object getServiceObject(org.codehaus.xfire.MessageContext context)
                                  throws org.codehaus.xfire.fault.XFireFault
Creates and returns a service object depending on the scope.

Specified by:
getServiceObject in interface JavaService
Throws:
org.codehaus.xfire.fault.XFireFault

createServiceObject

public java.lang.Object createServiceObject()
                                     throws org.codehaus.xfire.fault.XFireFault
Throws:
org.codehaus.xfire.fault.XFireFault

isAutoTyped

public boolean isAutoTyped()

setAutoTyped

public void setAutoTyped(boolean autoTyped)

getTypeMappingRegistry

public TypeMappingRegistry getTypeMappingRegistry()

setTypeMappingRegistry

public void setTypeMappingRegistry(TypeMappingRegistry typeMappingRegistry)

getScope

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

setScope

public void setScope(int scope)


Copyright © 2004 Codehaus. All Rights Reserved.