V
- is the generic type of the value
.@Named public class PropertyFactoryGeneric<V> extends AbstractPropertyFactory<V,GenericProperty<V>>
PropertyFactory
for LongProperty
.Constructor and Description |
---|
PropertyFactoryGeneric() |
Modifier and Type | Method and Description |
---|---|
GenericProperty<V> |
create(String name,
GenericType<? extends V> valueType,
Bean bean,
AbstractValidator<? super V> validator)
Creates a new instance of the property.
|
Class<GenericProperty<V>> |
getImplementationClass() |
Class<? extends ReadableProperty<V>> |
getReadableInterface() |
Class<? extends V> |
getValueClass() |
Class<? extends WritableProperty<V>> |
getWritableInterface() |
public Class<? extends V> getValueClass()
Class
of the property value
. May be null
for
GenericProperty
.public Class<? extends ReadableProperty<V>> getReadableInterface()
Class
reflecting the ReadableProperty
interface.public Class<? extends WritableProperty<V>> getWritableInterface()
Class
reflecting the WritableProperty
interface.public Class<GenericProperty<V>> getImplementationClass()
Class
reflecting the WritableProperty
implementation.public GenericProperty<V> create(String name, GenericType<? extends V> valueType, Bean bean, AbstractValidator<? super V> validator)
PropertyFactory
name
- the property name
.valueType
- is the GenericType
of the value. Only needed for generic properties such as
GenericProperty
or
ListProperty
. Can be null
if the generic value type is
already bound and should be ignored then.bean
- the property bean
.validator
- the validator
used for validation
.
May be null
.Copyright © 2001–2016 mmm-Team. All rights reserved.