Oracle Application Development Framework Model and Business Components Java API Reference 10g Release 3 (10.1.3)
B16005-01


oracle.jbo.html.databeans.chart
Class MethodInvoker

java.lang.Object
  extended byoracle.jbo.html.databeans.chart.MethodInvoker


public class MethodInvoker
extends java.lang.Object

A helper class to get/set properties on Perspective bean

Version:
Internal ^

Constructor Summary
MethodInvoker(java.lang.Object invokeOn, java.lang.String propertyFileName)
          Constructor

 

Method Summary
 java.lang.String invokeGetProperty(java.lang.String name)
          Invokes get property method on the object.
 void invokeSetProperty(java.lang.String name, java.lang.String arg)
          Invokes set property method on the object.
static void main(java.lang.String[] arg)
          test this class

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

MethodInvoker

public MethodInvoker(java.lang.Object invokeOn,
                     java.lang.String propertyFileName)
Constructor
Parameters:
invokeOn - - get/set method's will be invoked on this object
propertyFileName - - name of the file which contains the list of properties supported by the object ('invokeOn')

Method Detail

invokeSetProperty

public void invokeSetProperty(java.lang.String name,
                              java.lang.String arg)
                       throws java.lang.IllegalAccessException,
                              java.lang.reflect.InvocationTargetException,
                              java.lang.ClassNotFoundException,
                              java.lang.NoSuchMethodException
Invokes set property method on the object. The name of the property should not include the set prefix. To set, 'GraphType', pass GraphType as the property name.
Parameters:
name - name of the property
arg - new value to set
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException

invokeGetProperty

public java.lang.String invokeGetProperty(java.lang.String name)
                                   throws java.lang.IllegalAccessException,
                                          java.lang.reflect.InvocationTargetException,
                                          java.lang.ClassNotFoundException,
                                          java.lang.NoSuchMethodException
Invokes get property method on the object. The name of the property should not include the get prefix. To get, 'GraphType', pass GraphType as the property name.
Parameters:
name - name of the property
Returns:
value of the property returned as a String
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException

main

public static void main(java.lang.String[] arg)
test this class

Oracle Application Development Framework Model and Business Components Java API Reference 10g Release 3 (10.1.3)
B16005-01


Copyright © 1997, 2005, Oracle. All rights reserved.