public class InstancePropertyFactory<T,Y> extends Object implements PropertyFactory<T,Y>
| Constructor and Description |
|---|
InstancePropertyFactory(Class<Y> instanceClass) |
| Modifier and Type | Method and Description |
|---|---|
Y |
create(PropertyTypeRegistry registry,
T propertyKey)
Creates a new instance of the property.
|
static <T,Y> InstancePropertyFactory<T,Y> |
forClass(Class<Y> clazz) |
public Y create(PropertyTypeRegistry registry, T propertyKey)
PropertyFactorycreate in interface PropertyFactory<T,Y>registry - Registry that is creating the default value.propertyKey - Property key for which value is to be created.public static <T,Y> InstancePropertyFactory<T,Y> forClass(Class<Y> clazz)
Copyright © 2017. All rights reserved.