Java Doc for BeanInfoSupport.java in  » Testing » jakarta-jmeter » org » apache » jmeter » testbeans » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » jakarta jmeter » org.apache.jmeter.testbeans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.beans.SimpleBeanInfo
      org.apache.jmeter.testbeans.BeanInfoSupport

All known Subclasses:   org.apache.jmeter.util.BeanShellBeanInfoSupport,  org.apache.jmeter.sampler.DebugSamplerBeanInfo,  org.apache.jmeter.protocol.jdbc.config.DataSourceElementBeanInfo,  org.apache.jmeter.timers.SyncTimerBeanInfo,  org.apache.jmeter.protocol.jdbc.sampler.JDBCSamplerBeanInfo,  org.apache.jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo,  org.apache.jmeter.extractor.DebugPostProcessorBeanInfo,  org.apache.jmeter.examples.testbeans.example2.Example2BeanInfo,  org.apache.jmeter.config.CSVDataSetBeanInfo,  org.apache.jmeter.timers.ConstantThroughputTimerBeanInfo,
BeanInfoSupport
abstract public class BeanInfoSupport extends SimpleBeanInfo (Code)
Support class for test bean beanInfo objects. It will help using the introspector to get most of the information, to then modify it at will.

To use, subclass it, create a subclass with a parameter-less constructor that:

  1. Calls super(beanClass)
  2. Modifies the property descriptors, bean descriptor, etc. at will.

Even before any such modifications, a resource bundle named xxxResources (where xxx is the fully qualified bean class name) will be obtained if available and used to localize the following:

  • Bean's display name -- from property displayName.
  • Properties' display names -- from properties propertyName.displayName.
  • Properties' short descriptions -- from properties propertyName.shortDescription.

The resource bundle will be stored as the bean descriptor's "resourceBundle" attribute, so that it can be used for further localization. TestBeanGUI, for example, uses it to obtain the group's display names from properties groupName.displayName.
author:
   Jordi Salvat i Alabart
version:
   $Revision: 577345 $ updated on $Date: 2007-09-19 17:29:45 +0100 (Wed, 19 Sep 2007) $



Field Summary
final public static  StringDEFAULT
    
final public static  StringNOT_EXPRESSION
    
final public static  StringNOT_OTHER
    
final public static  StringNOT_UNDEFINED
    
final public static  StringRESOURCE_BUNDLE
    
final public static  StringTAGS
    

Constructor Summary
protected  BeanInfoSupport(Class beanClass)
     Construct a BeanInfo for the given class.

Method Summary
protected  voidcreatePropertyGroup(String group, String[] names)
     Utility method to group and order properties.

It will assing the given group name to each of the named properties, and set their order attribute so that they are shown in the given order.

The created groups will get order 1, 2, 3,...

public  BeanInfo[]getAdditionalBeanInfo()
    
public  BeanDescriptorgetBeanDescriptor()
    
public  intgetDefaultEventIndex()
    
public  intgetDefaultPropertyIndex()
    
public  EventSetDescriptor[]getEventSetDescriptors()
    
public  ImagegetIcon(int iconKind)
    
public  MethodDescriptor[]getMethodDescriptors()
    
public  PropertyDescriptor[]getPropertyDescriptors()
    
protected  PropertyDescriptorproperty(String name)
     Get the property descriptor for the property of the given name.
protected  voidsetIcon(String resourceName)
     Set the bean's 16x16 colour icon.

Field Detail
DEFAULT
final public static String DEFAULT(Code)



NOT_EXPRESSION
final public static String NOT_EXPRESSION(Code)



NOT_OTHER
final public static String NOT_OTHER(Code)



NOT_UNDEFINED
final public static String NOT_UNDEFINED(Code)



RESOURCE_BUNDLE
final public static String RESOURCE_BUNDLE(Code)



TAGS
final public static String TAGS(Code)




Constructor Detail
BeanInfoSupport
protected BeanInfoSupport(Class beanClass)(Code)
Construct a BeanInfo for the given class.




Method Detail
createPropertyGroup
protected void createPropertyGroup(String group, String[] names)(Code)
Utility method to group and order properties.

It will assing the given group name to each of the named properties, and set their order attribute so that they are shown in the given order.

The created groups will get order 1, 2, 3,... in the order in which they are created.
Parameters:
  group - name of the group
Parameters:
  names - property names in the desired order




getAdditionalBeanInfo
public BeanInfo[] getAdditionalBeanInfo()(Code)



getBeanDescriptor
public BeanDescriptor getBeanDescriptor()(Code)



getDefaultEventIndex
public int getDefaultEventIndex()(Code)



getDefaultPropertyIndex
public int getDefaultPropertyIndex()(Code)



getEventSetDescriptors
public EventSetDescriptor[] getEventSetDescriptors()(Code)



getIcon
public Image getIcon(int iconKind)(Code)



getMethodDescriptors
public MethodDescriptor[] getMethodDescriptors()(Code)



getPropertyDescriptors
public PropertyDescriptor[] getPropertyDescriptors()(Code)



property
protected PropertyDescriptor property(String name)(Code)
Get the property descriptor for the property of the given name.
Parameters:
  name - property name descriptor for a property of that name, or null if there's none



setIcon
protected void setIcon(String resourceName)(Code)
Set the bean's 16x16 colour icon.
Parameters:
  resourceName - A pathname relative to the directory holding the class file ofthe current class.



Methods inherited from java.beans.SimpleBeanInfo
public BeanInfo[] getAdditionalBeanInfo()(Code)(Java Doc)
public BeanDescriptor getBeanDescriptor()(Code)(Java Doc)
public int getDefaultEventIndex()(Code)(Java Doc)
public int getDefaultPropertyIndex()(Code)(Java Doc)
public EventSetDescriptor[] getEventSetDescriptors()(Code)(Java Doc)
public java.awt.Image getIcon(int iconKind)(Code)(Java Doc)
public MethodDescriptor[] getMethodDescriptors()(Code)(Java Doc)
public PropertyDescriptor[] getPropertyDescriptors()(Code)(Java Doc)
public java.awt.Image loadImage(String resourceName)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.