com.ibm.websphere.rpcadapter
Class SimplerBeanInfo

java.lang.Object
  extended by java.beans.SimpleBeanInfo
      extended by com.ibm.websphere.rpcadapter.SimplerBeanInfo
All Implemented Interfaces:
java.beans.BeanInfo

public abstract class SimplerBeanInfo
extends java.beans.SimpleBeanInfo

Reduces BeanInfo programming to more of a declarative style, encoded as String arrays in the getBeanDescriptorInfo method. If the Bean implementation itself can be modified, then the BeanInfo class is not even necessary; rather, the Bean implements the SelfBeanInfo tag interface and the getBeanDescriptorInfo method itself

See Also:
SelfBeanInfo

Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
SimplerBeanInfo()
           
 
Method Summary
 java.beans.BeanDescriptor getBeanDescriptor()
          Implements parsing of the declarative descriptors from getBeanDescriptorInfo.
abstract  java.lang.String[][] getBeanDescriptorInfo()
          Returns BeanInfo-style information encoded as String arrays.
 java.beans.MethodDescriptor[] getMethodDescriptors()
          Implements parsing of the declarative descriptors from getBeanDescriptorInfo.
 void setBeanClass(java.lang.Class clazz)
          The associated Bean class must be set in order to compute Method descriptors.
 
Methods inherited from class java.beans.SimpleBeanInfo
getAdditionalBeanInfo, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getPropertyDescriptors, loadImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplerBeanInfo

public SimplerBeanInfo()
Method Detail

getBeanDescriptorInfo

public abstract java.lang.String[][] getBeanDescriptorInfo()
Returns BeanInfo-style information encoded as String arrays. Bean-level information is encoded as:
   {"bean", "oneInstancePerUser", "true" | "false"}
 
If oneInstancePerUser is true, then Bean instances are stored in the users' HttpSession for subsequent reuse. Default value is "false".

Method-level information is encoded as:

   {"method", <methodName>, <methodDescription>, "GET" | "POST", [<parmName_0>, <parmDesc_0>, ...]}
 
Parameter names must be specified in the order they appear in the method signature. Only methods declared in the descriptor info are exposed by the RPC Adapter.


setBeanClass

public void setBeanClass(java.lang.Class clazz)
The associated Bean class must be set in order to compute Method descriptors.

Parameters:
clazz - Bean class

getBeanDescriptor

public java.beans.BeanDescriptor getBeanDescriptor()
Implements parsing of the declarative descriptors from getBeanDescriptorInfo. Do not override unless you need to change the base functionality.

Specified by:
getBeanDescriptor in interface java.beans.BeanInfo
Overrides:
getBeanDescriptor in class java.beans.SimpleBeanInfo

getMethodDescriptors

public java.beans.MethodDescriptor[] getMethodDescriptors()
Implements parsing of the declarative descriptors from getBeanDescriptorInfo. Do not override unless you need to change the base functionality.

Specified by:
getMethodDescriptors in interface java.beans.BeanInfo
Overrides:
getMethodDescriptors in class java.beans.SimpleBeanInfo