BeanDescriptor

  • BeanDescriptor provides global information about a bean, such as its class and customizer class.

  • It inherits functionalities from FeatureDescriptor for managing attributes like display name, expert status, and visibility.

  • You can retrieve the bean's class and customizer class using getBeanClass() and getCustomizerClass() methods, respectively.

  • Constructors allow you to create a BeanDescriptor instance by specifying the bean's class and optionally its customizer class.

  • The descriptor's name is automatically set to the unqualified name of the bean's class.

public class BeanDescriptor extends FeatureDescriptor

Describes a bean's global information.

Public Constructor Summary

BeanDescriptor(Class<?> beanClass, Class<?> customizerClass)

Constructs an instance with the bean's Class and a customizer Class.

BeanDescriptor(Class<?> beanClass)

Constructs an instance with the bean's Class.

Public Method Summary

Class<?>
getBeanClass()

Gets the bean's Class.

Class<?>
getCustomizerClass()

Gets the bean's customizer Class/

Inherited Method Summary

Public Constructors

public BeanDescriptor (Class<?> beanClass, Class<?> customizerClass)

Constructs an instance with the bean's Class and a customizer Class. The descriptor's FeatureDescriptor.getName() is set as the unqualified name of the beanClass.

Parameters
beanClass The bean's Class.
customizerClass The bean's customizer Class.

public BeanDescriptor (Class<?> beanClass)

Constructs an instance with the bean's Class. The descriptor's FeatureDescriptor.getName() is set as the unqualified name of the beanClass.

Parameters
beanClass The bean's Class.

Public Methods

public Class<?> getBeanClass ()

Gets the bean's Class.

Returns

public Class<?> getCustomizerClass ()

Gets the bean's customizer Class/

Returns
  • A Class instance or null.