public class SingletonPropertyFactory<T,Y> extends Object implements PropertyFactory<T,Y>
| Constructor and Description |
|---|
SingletonPropertyFactory(Y instance) |
| Modifier and Type | Method and Description |
|---|---|
Y |
create(PropertyTypeRegistry registry,
T propertyKey)
Creates a new instance of the property.
|
static <A,B> PropertyFactory<A,B> |
forValue(B date) |
public SingletonPropertyFactory(Y instance)
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 <A,B> PropertyFactory<A,B> forValue(B date)
Copyright © 2017. All rights reserved.