|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.configuration.DefaultAdhocObjectFactory
public class DefaultAdhocObjectFactory
A default implementation of AdhocObjectFactory
that creates objects using
default no-arg constructor and injects dependencies into annotated fields. Note that
constructor injection is not supported by this factory.
Field Summary | |
---|---|
protected Injector |
injector
|
Constructor Summary | |
---|---|
DefaultAdhocObjectFactory()
|
Method Summary | ||
---|---|---|
|
newInstance(java.lang.Class<? super T> superType,
java.lang.String className)
Returns an instance of "className" that implements "superType", injecting dependencies from the registry into it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Injector injector
Constructor Detail |
---|
public DefaultAdhocObjectFactory()
Method Detail |
---|
public <T> T newInstance(java.lang.Class<? super T> superType, java.lang.String className)
AdhocObjectFactory
newInstance
in interface AdhocObjectFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |