JavaVM:
GetInterfaces method
Description
Populates
a string array with the names of interfaces implemented by the Java object
that a PowerBuilder proxy object represents.
Syntax
|
1 |
<span>javavm</span>.GetInterfaces(powerobject <span>proxyobject</span><span></span>, ref string <span>interfacename</span>[ ]) |
|
Argument |
Description |
|---|---|
|
javavm |
An instance of the JavaVM class |
|
proxyobject |
An instantiated PowerBuilder proxy object |
|
interfacename[ ] |
A reference to an unbounded array of |
Return Values
Integer. Returns the number of interfaces
implemented by the Java object represented by proxyobject.
If no interfaces are implemented by the Java object, this method
returns 0. If proxyobject is invalid, this
method returns -1.
Usage
If a class implements multiple interfaces, the proxy returned
from an EJB method call that returns a Java object maps to the first
interface implemented by the Java class. This method writes a list
of interfaces implemented by the class to an array of strings. It
can be used in conjunction with the DynamicCast method
to cast the returned proxy to the interface required.
For more information, see the description of the DynamicCast method.