Community articlegetInterfaceInstances method
Added by IBM contributorIBM on August 15, 2011
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.



Description

Returns a list of FunctionCall objects that are currently registered with the IFX Manager.

Method

public com.PureEdge.GenericInterface [ ] getInterfaceInstances(
   String theInterfaceName,
   int theInterfaceVersion
   ) throws UWIException;


Parameters

ExpressionTypeDescription
theInterfaceName StringThe name of the interface that you are looking for. In most cases, a Function Call Interface.
theInterfaceVersion intThe interface version.


Returns

Returns a list of GenericInterface objects that must be typecast to FunctionCall objects, or null if no matching interfaces are found. Throws a generic exception (UWIException) if an error occurs.

Notes

When you are finished with a FunctionCall object and the HardGCFlag is false, you must call the object's release method. This will allow the memory that it occupied to be collected during normal JVM garbage collection. It is safe to call release when the HardGCFlag is true. See setHardGCFlag for more information.

Example

   public class myFunctionCall extends com.PureEdge.xfdl.FunctionCallImplBase 
   implements FunctionCall
   {
   GenericInterface theList [];
      /* Additional Code Removed */
      theList = theIFX.getInterfaceInstances
         (FunctionCall.FUNCTIONCALL_INTERFACE_NAME, 
         FunctionCall.FUNCTIONCALL_CURRENT_VERSION);
      for(int i = 0 ; i < theList.length ; i++)
      {
         FunctionCall theFunctionCall;
         theFunctionCall = (FunctionCall)theList [i];
         /* Additional Code Removed */
 
         theFunctionCall.release();
      }
   }


Parent topic:
IFX class