T - Java class to be introspectedpublic class ProvidesPropertyScanner<T> extends Object
@ProvidesProperty and
@ProvidesPropertySort annotated getter methods and creates
a corresponding set of PropertyDef property definitions and a SortingPropertyExtractor
that will extract the properties from instances of the given class and sort them accordingly.@ProvidesProperty,
@ProvidesPropertySort| Constructor and Description |
|---|
ProvidesPropertyScanner(Class<T> type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<PropertyDef<?>> |
getPropertyDefs()
Get the list of
PropertyDefs generated from the annotated methods. |
SortingPropertyExtractor<T> |
getPropertyExtractor()
Get the
PropertyExtractor that extracts Vaadin Property values
from instances of the annotated class when given one of the PropertyDefs returned by
getPropertyDefs(). |
public ProvidesPropertyScanner(Class<T> type)
type - Java class to be introspectedIllegalArgumentException - if type is nullIllegalArgumentException - if an annotated method with no property name specified
has a name which cannot be interpreted as a bean property "getter" methodIllegalArgumentException - if type has two @ProvidesProperty-annotated
fields or methods with the same property namepublic List<PropertyDef<?>> getPropertyDefs()
PropertyDefs generated from the annotated methods.
All of the properties in the returned list can be extracted from instances of this reader's configured
class by the PropertyExtractor returned by getPropertyExtractor().
getPropertyExtractor()public SortingPropertyExtractor<T> getPropertyExtractor()
PropertyExtractor that extracts Vaadin Property values
from instances of the annotated class when given one of the PropertyDefs returned by
getPropertyDefs().getPropertyDefs()Copyright © 2017. All rights reserved.