T - the type of the beanpublic interface TypedMetaBean<T extends Bean> extends MetaBean
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.
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
beanType()
Get the type of the bean, represented as a
Class. |
BeanBuilder<T> |
builder()
Creates a bean builder that can be used to create an instance of this bean.
|
annotation, annotations, beanName, isBuildable, metaProperty, metaPropertyCount, metaPropertyExists, metaPropertyIterable, metaPropertyMap, of, registerBeanBuilder<T> builder()
MetaBeanThe 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 Map of MetaProperty to value.
Note that the implementation is not necessarily an actual map.
Copyright © 2007–2017 Joda.org. All rights reserved.