org.codehaus.xfire.service
Class ServiceInfo

java.lang.Object
  extended by org.codehaus.xfire.AbstractContext
      extended by org.codehaus.xfire.service.ServiceInfo
All Implemented Interfaces:
Visitable

public class ServiceInfo
extends AbstractContext
implements Visitable

Represents an description of a service. A service consists of a number of OperationInfo objects, a qualified name, and a service class.

Author:
Arjen Poutsma
See Also:
OperationInfo

Constructor Summary
ServiceInfo(javax.xml.namespace.QName portType, java.lang.Class serviceClass)
          Initializes a new instance of the ServiceInfo class with the given qualified name and service class.
 
Method Summary
 void accept(Visitor visitor)
          Acceps the given visitor.
 OperationInfo addOperation(javax.xml.namespace.QName name, java.lang.reflect.Method method)
           
 OperationInfo addOperation(java.lang.String name, java.lang.reflect.Method method)
          Adds an operation to this service.
 java.lang.String getDocumentation()
           
 OperationInfo getOperation(java.lang.reflect.Method m)
           
 OperationInfo getOperation(java.lang.String name)
          Returns the operation info with the given name, if found.
 java.util.Collection getOperations()
          Returns all operations for this service.
 javax.xml.namespace.QName getPortType()
           
 Service getService()
           
 java.lang.Class getServiceClass()
          Returns the service class of the service descriptor.
 boolean isWrapped()
           
 void removeOperation(javax.xml.namespace.QName name)
           
 void removeOperation(java.lang.String name)
          Removes an operation from this service.
 void setDocumentation(java.lang.String documentation)
           
 void setPortType(javax.xml.namespace.QName portType)
           
 void setService(Service service)
           
 void setServiceClass(java.lang.Class serviceClass)
           
 void setWrapped(boolean wrapped)
           
 
Methods inherited from class org.codehaus.xfire.AbstractContext
getProperty, removeProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceInfo

public ServiceInfo(javax.xml.namespace.QName portType,
                   java.lang.Class serviceClass)
Initializes a new instance of the ServiceInfo class with the given qualified name and service class.

Parameters:
name - the qualified name.
serviceClass - the service class.
Method Detail

accept

public void accept(Visitor visitor)
Acceps the given visitor. Iterates over all operation infos.

Specified by:
accept in interface Visitable
Parameters:
visitor - the visitor.

addOperation

public OperationInfo addOperation(java.lang.String name,
                                  java.lang.reflect.Method method)
Adds an operation to this service.

Parameters:
name - the qualified name of the operation.
Returns:
the operation.

addOperation

public OperationInfo addOperation(javax.xml.namespace.QName name,
                                  java.lang.reflect.Method method)

getOperation

public OperationInfo getOperation(java.lang.String name)
Returns the operation info with the given name, if found.

Parameters:
name - the name.
Returns:
the operation; or null if not found.

getOperation

public OperationInfo getOperation(java.lang.reflect.Method m)

getOperations

public java.util.Collection getOperations()
Returns all operations for this service.

Returns:
all operations.

getServiceClass

public java.lang.Class getServiceClass()
Returns the service class of the service descriptor.

Returns:

setServiceClass

public void setServiceClass(java.lang.Class serviceClass)

removeOperation

public void removeOperation(java.lang.String name)
Removes an operation from this service.

Parameters:
name - the operation name.

removeOperation

public void removeOperation(javax.xml.namespace.QName name)

getPortType

public javax.xml.namespace.QName getPortType()

setPortType

public void setPortType(javax.xml.namespace.QName portType)

isWrapped

public boolean isWrapped()

setWrapped

public void setWrapped(boolean wrapped)

getService

public Service getService()

setService

public void setService(Service service)

getDocumentation

public java.lang.String getDocumentation()

setDocumentation

public void setDocumentation(java.lang.String documentation)


Copyright © 2004-2011. All Rights Reserved.