org.codehaus.xfire.java
Class DefaultJavaService
java.lang.Object
org.codehaus.xfire.AbstractXFireComponent
org.codehaus.xfire.service.SimpleService
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
Fields inherited from interface org.codehaus.xfire.service.Service |
ROLE |
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 |
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
DefaultJavaService
public DefaultJavaService()
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.