- Type Parameters:
T- the type of the bean
- All Superinterfaces:
A meta-bean that captures the type of the bean.
It is not possible to add the generic type to all beans, as the type cannot be refined in hierarchies. This interface is thus useful when there are no subclasses.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
beanType()Get the type of the bean, represented as a
builder()Creates a bean builder that can be used to create an instance of this bean.
BeanBuilder<T> builder()Description copied from interface:
MetaBeanCreates a bean builder that can be used to create an instance of this bean.
The builder is used in two main ways. The first is to allow immutable beans to be constructed. The second is to enable automated tools like serialization/deserialization.
The builder can be thought of as a
MetaPropertyto value. Note that the implementation is not necessarily an actual map.
java.lang.Class<T> beanType()Description copied from interface:
MetaBeanGet the type of the bean, represented as a
MetaBeancan be thought of as the equivalent of
Classbut for beans. This method allows the actual
Classinstance of the bean to be obtained.