public abstract class AbstractGenericClassFactory<T> extends AbstractClassFactory<T> implements GenericClassFactory<T>
hints| Constructor and Description |
|---|
AbstractGenericClassFactory(Class<T> clazz) |
AbstractGenericClassFactory(Class<T> clazz,
FactoryHint config) |
| Modifier and Type | Method and Description |
|---|---|
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, removeHintclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, putHint, supportscreate, removeHintpublic AbstractGenericClassFactory(Class<T> clazz, FactoryHint config)
public 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 otherwisepublic boolean supports(Class clazz)
ClassFactorysupports in interface ClassFactory<T>clazz - The class to check support againsttrue if this ClassFactory supports the clazz requested to be created, false otherwiseCopyright © 2016. All rights reserved.