public class DefaultAdhocObjectFactory extends Object implements AdhocObjectFactory
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.| Constructor and Description |
|---|
DefaultAdhocObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getJavaClass(String className) |
<T> T |
newInstance(Class<? super T> superType,
String className)
Returns an instance of "className" that implements "superType", injecting
dependencies from the registry into it.
|
protected Injector injector
public <T> T newInstance(Class<? super T> superType, String className)
AdhocObjectFactorynewInstance in interface AdhocObjectFactorypublic Class<?> getJavaClass(String className) throws ClassNotFoundException
ClassNotFoundExceptionCopyright © 2001–2018 Apache Cayenne. All rights reserved.