-
- All Known Implementing Classes:
BeanPropertyMetadataFactory,PropertyBuilders,PropertyMetadataFactoryDefault
public interface PropertyMetadataFactoryFactory tocreateinstances ofPropertyMetadata.- Since:
- 1.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <V> PropertyMetadata<V>create(PropertyMetadata<V> metadata)<V> PropertyMetadata<V>create(Validator<? super V> validator, Supplier<? extends V> expression, Type valueType, Map<String,Object> map)static PropertyMetadataFactoryget()static PropertyMetadataFactoryget(PropertyMetadataFactory factory)
-
-
-
Method Detail
-
create
<V> PropertyMetadata<V> create(Validator<? super V> validator, Supplier<? extends V> expression, Type valueType, Map<String,Object> map)
- Type Parameters:
V- type of theproperty value.- Parameters:
validator- thevalidator.expression- theexpression.valueType- thevalue type.map- themetadataMap.- Returns:
- the new
PropertyMetadata.
-
create
default <V> PropertyMetadata<V> create(PropertyMetadata<V> metadata)
- Type Parameters:
V- type of theproperty value.- Parameters:
metadata- the existingPropertyMetadatato copy or convert.- Returns:
- the new
PropertyMetadata.
-
get
static PropertyMetadataFactory get()
- Returns:
- the default instance.
-
get
static PropertyMetadataFactory get(PropertyMetadataFactory factory)
- Parameters:
factory- the optionalPropertyMetadataFactory.- Returns:
- the given
PropertyMetadataFactoryif notnullor thedefault instanceotherwise.
-
-