public interface ClassFactory<T>
| Modifier and Type | Method and Description |
|---|---|
T |
create(Field field) |
void |
setConfig(FactoryConfig config) |
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)
|
boolean supports(Class clazz)
clazz - The class to check support againsttrue if this ClassFactory supports the clazz requested to be created, false otherwiseboolean supports(Field field)
field - The field to check support againsttrue if this ClassFactory supports the field requested to be created, false otherwiseT create(Field field)
field - The field to create an instance ofT that this class is a factory forvoid setConfig(FactoryConfig config)
config - the new FactoryConfig for this factoryCopyright © 2016. All rights reserved.