A ServiceDesc is an abstract description of a service.
ServiceDescs contain OperationDescs, which are descriptions of operations.
The information about a service's operations comes from one of two places:
1) deployment, or 2) introspection.
getImplClass
public Class getImplClass()
getOperationByName
public OperationDesc getOperationByName(String methodName)
Return an operation matching the given method name. Note that if we
have multiple overloads for this method, we will return the first one.
- getOperationByName in interface ServiceDesc
getOperations
public ArrayList getOperations()
get all the operations as a list of OperationDescs.
this method triggers an evaluation of the valid operations by
introspection, so use sparingly
- getOperations in interface ServiceDesc
- reference to the operations array. This is not a copy
getOperationsByName
public OperationDesc[] getOperationsByName(String methodName)
get all overloaded operations by name
- getOperationsByName in interface ServiceDesc
- null for no match, or an array of OperationDesc objects
getStopClasses
public ArrayList getStopClasses()
getWSDLFile
public String getWSDLFile()
the wsdl file of the service.
When null, it means that the wsdl should be autogenerated
- getWSDLFile in interface ServiceDesc
isWrapped
public boolean isWrapped()
Determine whether or not this is a "wrapped" invocation, i.e. whether
the outermost XML element of the "main" body element represents a
method call, with the immediate children of that element representing
arguments to the method.
- isWrapped in interface ServiceDesc
- true if this is wrapped (i.e. RPC or WRAPPED style),
false otherwise
loadServiceDescByIntrospection
public void loadServiceDescByIntrospection()
Fill in a service description by introspecting the implementation
class.
loadServiceDescByIntrospection
public void loadServiceDescByIntrospection(Class implClass)
Fill in a service description by introspecting the implementation
class.
loadServiceDescByIntrospection
public void loadServiceDescByIntrospection(Class cls,
TypeMapping tm)
Fill in a service description by introspecting the implementation
class. This version takes the implementation class and the in-scope
TypeMapping.
setDocumentation
public void setDocumentation(String documentation)
set the documentation for the service
- setDocumentation in interface ServiceDesc
setImplClass
public void setImplClass(Class implClass)
set the implementation class
Warning: You cannot call getInitializedServiceDesc() after setting this
as it uses this to indicate its work has already been done.
setName
public void setName(String name)
the name of the service
- setName in interface ServiceDesc
setStopClasses
public void setStopClasses(ArrayList stopClasses)
setWSDLFile
public void setWSDLFile(String wsdlFileName)
set the wsdl file of the service; this causes the named
file to be returned on a ?wsdl, probe, not introspection
generated wsdl.
- setWSDLFile in interface ServiceDesc
wsdlFileName
- filename or null to re-enable introspection