org.apache.jmeter.testbeans

Class TestBeanBeanInfo

Implemented Interfaces:
BeanInfo

public class TestBeanBeanInfo
extends Object
implements BeanInfo

This is the BeanInfo object for the TestBean class. It acts as a "stopper" for the introspector: we don't want it to look at properties defined at this or higher classes.

Note this is really needed since using Introspector.getBeanInfo with a stop class is not an option because:

  1. The API does not define a 3-parameter getBeanInfo in which you can use a stop class AND flags. [Why? I guess this is a bug in the spec.]
  2. java.beans.Introspector is buggy and, opposite to what's stated in the Javadocs, only results of getBeanInfo(Class) are actually cached.
Version:
$Revision: 674365 $

Method Summary

BeanInfo[]
getAdditionalBeanInfo()
BeanDescriptor
getBeanDescriptor()
int
getDefaultEventIndex()
int
getDefaultPropertyIndex()
EventSetDescriptor[]
getEventSetDescriptors()
Image
getIcon(int iconKind)
MethodDescriptor[]
getMethodDescriptors()
PropertyDescriptor[]
getPropertyDescriptors()

Method Details

getAdditionalBeanInfo

public BeanInfo[] getAdditionalBeanInfo()

getBeanDescriptor

public BeanDescriptor getBeanDescriptor()

getDefaultEventIndex

public int getDefaultEventIndex()

getDefaultPropertyIndex

public int getDefaultPropertyIndex()

getEventSetDescriptors

public EventSetDescriptor[] getEventSetDescriptors()

getIcon

public Image getIcon(int iconKind)

getMethodDescriptors

public MethodDescriptor[] getMethodDescriptors()

getPropertyDescriptors

public PropertyDescriptor[] getPropertyDescriptors()

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.