org.codehaus.xfire.service
Class ServiceInfo

java.lang.Object
  extended byorg.codehaus.xfire.AbstractContext
      extended byorg.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(java.lang.String name, java.lang.reflect.Method method)
          Adds an operation to this service.
 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()
           
 java.lang.Class getServiceClass()
          Returns the service class of the service descriptor.
 boolean isWrapped()
           
 void removeOperation(java.lang.String name)
          Removes an operation from this service.
 void setPortType(javax.xml.namespace.QName portType)
           
 void setServiceClass(java.lang.Class serviceClass)
           
 void setWrapped(boolean wrapped)
           
 
Methods inherited from class org.codehaus.xfire.AbstractContext
getProperty, 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:
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.

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.

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)


Copyright © 2004-2006 null. All Rights Reserved.