-
- All Known Implementing Classes:
BeanPropertyMetadataFactory
,PropertyBuilders
,PropertyMetadataFactoryDefault
public interface PropertyMetadataFactory
Factory tocreate
instances 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 PropertyMetadataFactory
get()
static PropertyMetadataFactory
get(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
- themetadata
Map
.- Returns:
- the new
PropertyMetadata
.
-
create
default <V> PropertyMetadata<V> create(PropertyMetadata<V> metadata)
- Type Parameters:
V
- type of theproperty value
.- Parameters:
metadata
- the existingPropertyMetadata
to 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
PropertyMetadataFactory
if notnull
or thedefault instance
otherwise.
-
-