public class SimpleFieldFactory<T> extends AbstractClassFactory<T>
hints| Constructor and Description |
|---|
SimpleFieldFactory(Field field,
java.util.function.Supplier<T> factory) |
| Modifier and Type | Method and Description |
|---|---|
T |
create(Field field) |
boolean |
supports(Class clazz)
Checks if this ClassFactory is targetted at a specific Class
|
boolean |
supports(Field field)
Checks if this ClassFactory is targetted at a specific field (can check for generics, annotations etc)
|
getHint, putHint, removeHintpublic SimpleFieldFactory(Field field, java.util.function.Supplier<T> factory)
public boolean supports(Class clazz)
ClassFactoryclazz - The class to check support againsttrue if this ClassFactory supports the clazz requested to be created, false otherwisepublic boolean supports(Field field)
ClassFactorysupports in interface ClassFactory<T>supports in class AbstractClassFactory<T>field - The field to check support againsttrue if this ClassFactory supports the field requested to be created, false otherwiseCopyright © 2016. All rights reserved.