org.apache.bsf.engines.activescript
Class JavaBean
java.lang.Object
org.apache.bsf.engines.activescript.JavaBean
public final class JavaBean
extends java.lang.Object
static int | bindMember(Class jclass, String name) - Bind the member to a unique index.
|
static int | bindMember(Class jclass, String name, short bindType) - Bind the member to a unique index.
|
static Object | callMethod(JavaBeanAddEventListener engine, Object bean, int methodID, Object[] args) - Call a method, property getter, or property setter.
|
bindMember
public static final int bindMember(Class jclass,
String name)
throws 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
bindMember
public static final int bindMember(Class jclass,
String name,
short bindType)
throws Exception
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)
throws 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