com.ibm.websphere.rpcadapter

Class SimplerBeanInfo

  1. java.lang.Object
  2. extended byjava.beans.SimpleBeanInfo
  3. extended bycom.ibm.websphere.rpcadapter.SimplerBeanInfo
All implemented interfaces:
java.beans.BeanInfo

  1. public abstract class SimplerBeanInfo
  2. 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

Constructor and Description
SimplerBeanInfo()

Method Summary

Modifier and Type Method and Description
  1. java.beans.BeanDescriptor
getBeanDescriptor()
Implements parsing of the declarative descriptors from getBeanDescriptorInfo.
  1. abstract
  2. java.lang.String[][]
getBeanDescriptorInfo()
Returns BeanInfo-style information encoded as String arrays.
  1. java.beans.MethodDescriptor[]
getMethodDescriptors()
Implements parsing of the declarative descriptors from getBeanDescriptorInfo.
  1. 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

  1. public SimplerBeanInfo()

Method Detail

getBeanDescriptorInfo

  1. 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

  1. 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

  1. 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

  1. 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