public abstract class AbstractClassFactory<T> extends Object implements ClassFactory<T>
| Constructor and Description |
|---|
AbstractClassFactory() |
AbstractClassFactory(FactoryConfig config) |
| Modifier and Type | Method and Description |
|---|---|
<P extends FactoryConfig> |
getConfig(Class<P> clazz) |
void |
setConfig(FactoryConfig config) |
boolean |
supports(Field field)
Checks if this ClassFactory is targetted at a specific field (can check for generics, annotations etc)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, supportspublic AbstractClassFactory()
public AbstractClassFactory(FactoryConfig config)
public <P extends FactoryConfig> P getConfig(Class<P> clazz)
public void setConfig(FactoryConfig config)
setConfig in interface ClassFactory<T>config - the new FactoryConfig for this factorypublic boolean supports(Field field)
ClassFactorysupports in interface ClassFactory<T>field - The field to check support againsttrue if this ClassFactory supports the field requested to be created, false otherwiseCopyright © 2016. All rights reserved.