org.apache.bsf.engines.activescript

Class JavaBean

public final class JavaBean extends Object

Method Summary
static intbindMember(Class jclass, String name)
Bind the member to a unique index.
static intbindMember(Class jclass, String name, short bindType)
Bind the member to a unique index.
static ObjectcallMethod(JavaBeanAddEventListener engine, Object bean, int methodID, Object[] args)
Call a method, property getter, or property setter.

Method Detail

bindMember

public static final int bindMember(Class jclass, String name)
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

bindMember

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

callMethod

public static final Object callMethod(JavaBeanAddEventListener engine, Object bean, int methodID, Object[] args)
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