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)
AdhocObjectFactory
newInstance
in interface AdhocObjectFactory
public Class<?> getJavaClass(String className) throws ClassNotFoundException
ClassNotFoundException
Copyright © 2001–2018 Apache Cayenne. All rights reserved.