org.apache.bsf.engines.activescript
Class JavaBean

java.lang.Object
  extended by org.apache.bsf.engines.activescript.JavaBean

public final class JavaBean
extends java.lang.Object


Constructor Summary
JavaBean()
           
 
Method Summary
static int bindMember(java.lang.Class jclass, java.lang.String name)
          Bind the member to a unique index.
static int bindMember(java.lang.Class jclass, java.lang.String name, short bindType)
          Bind the member to a unique index.
static java.lang.Object callMethod(JavaBeanAddEventListener engine, java.lang.Object bean, int methodID, java.lang.Object[] args)
          Call a method, property getter, or property setter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaBean

public JavaBean()
Method Detail

bindMember

public static final int bindMember(java.lang.Class jclass,
                                   java.lang.String name)
                            throws java.lang.Exception
Bind the member to a unique index. Use positive indexes for methods, negative indexes for properties. Matches are case insensitive Convenience fuction for those engines not knowing dispatch type, case insensitive, and not wanting exception

Throws:
java.lang.Exception

bindMember

public static final int bindMember(java.lang.Class jclass,
                                   java.lang.String name,
                                   short bindType)
                            throws java.lang.Exception
Bind the member to a unique index. Use positive indexes for methods, negative indexes for properties. Matches are case insensitive.

Throws:
java.lang.Exception

callMethod

public static final java.lang.Object callMethod(JavaBeanAddEventListener engine,
                                                java.lang.Object bean,
                                                int methodID,
                                                java.lang.Object[] args)
                                         throws java.lang.Exception
Call a method, property getter, or property setter. If index > 0 then call simple method. Else if argc = 0 then call getter Else call setter

Throws:
java.lang.Exception