Package org.apache.cayenne.di
Interface AdhocObjectFactory
- All Known Implementing Classes:
- DefaultAdhocObjectFactory
public interface AdhocObjectFactory
Creates objects for user-provided String class names, injecting dependencies
 into them.
- Since:
- 3.1
- 
Method SummaryModifier and TypeMethodDescription<T> Class<? extends T>getJavaClass(String className) Returns a Java class loaded using ClassLoader returned fromClassLoaderManager.getClassLoader(String)for a given class name.<T> TnewInstance(Class<? super T> superType, String className) Returns an instance of "className" that implements "superType", injecting dependencies from the registry into it.
- 
Method Details- 
newInstanceReturns an instance of "className" that implements "superType", injecting dependencies from the registry into it.
- 
getJavaClassReturns a Java class loaded using ClassLoader returned fromClassLoaderManager.getClassLoader(String)for a given class name.- Since:
- 4.0
 
 
-