electric.proxy.chain
Class ReferenceChain

java.lang.Object
  extended byelectric.proxy.chain.ReferenceChain
All Implemented Interfaces:
IReference

public class ReferenceChain
extends java.lang.Object
implements IReference

ReferenceChain

Author:
webMethods

Constructor Summary
ReferenceChain()
           
 
Method Summary
 void addReference(IReference reference)
           
 int getLength()
           
 IReference getReferenceOfType(java.lang.Class type)
           
 WSDL getWSDL()
          Return WSDL for the service that I reference.
 Value invoke(java.lang.reflect.Method method, java.lang.Object[] args, Context context)
          Invoke the operation associated with a particular method, using the specified arguments.
 Value invoke(java.lang.String method, java.lang.Object[] args, java.lang.Class[] argTypes, Context context)
          Invoke the operation associated with a particular method, using the specified arguments and argument types.
 Value invoke(java.lang.String method, java.lang.String[] args, Context context)
          Invoke the operation associated with a particular method, using the specified arguments.
 boolean removeReference(java.lang.Class type)
           
 void removeReference(IReference reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceChain

public ReferenceChain()
Method Detail

addReference

public void addReference(IReference reference)
Parameters:
reference -

removeReference

public void removeReference(IReference reference)
Parameters:
reference -

removeReference

public boolean removeReference(java.lang.Class type)
Parameters:
type -

getReferenceOfType

public IReference getReferenceOfType(java.lang.Class type)
Parameters:
type -

getLength

public int getLength()

getWSDL

public WSDL getWSDL()
Description copied from interface: IReference
Return WSDL for the service that I reference.

Specified by:
getWSDL in interface IReference

invoke

public Value invoke(java.lang.reflect.Method method,
                    java.lang.Object[] args,
                    Context context)
             throws java.lang.Throwable
Description copied from interface: IReference
Invoke the operation associated with a particular method, using the specified arguments.

Specified by:
invoke in interface IReference
Parameters:
method -
args -
context -
Throws:
java.lang.Throwable

invoke

public Value invoke(java.lang.String method,
                    java.lang.Object[] args,
                    java.lang.Class[] argTypes,
                    Context context)
             throws java.lang.Throwable
Description copied from interface: IReference
Invoke the operation associated with a particular method, using the specified arguments and argument types. If more than one operation matches the method name and argument types, a NoSuchMethodException is thrown. The reason for allowing the argument types to be specified is to allow an argument of type Integer to be disambiguated from an argument of type int that has been wrapped in its Object equivalent.

Specified by:
invoke in interface IReference
Parameters:
method -
args -
argTypes -
context -
Throws:
java.lang.Throwable

invoke

public Value invoke(java.lang.String method,
                    java.lang.String[] args,
                    Context context)
             throws java.lang.Throwable
Description copied from interface: IReference
Invoke the operation associated with a particular method, using the specified arguments. If more than one operation matches the method name and argument count, a NoSuchMethodException is thrown.

Specified by:
invoke in interface IReference
Parameters:
method -
args -
context -
Throws:
java.lang.Throwable


copyright© 2001-2004 by webMethods All Rights Reserved.