public class DependencyManager extends Object
| Constructor and Description |
|---|
DependencyManager() |
DependencyManager(List<String> packages) |
DependencyManager(String packageName) |
public DependencyManager()
public DependencyManager(String packageName)
public boolean addPackage(String packageName)
public void clearPackages()
public void clearClasses()
public void clearInstances()
public void browse()
throws ClassNotFoundException
ClassNotFoundExceptionprotected boolean implementInterface(Class clazz, Class interfaceItem, String beanName)
protected Instance newInstance(Class clazz, String beanName) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, SetterMethodNotFoundException
protected Instance createInjectedConstructorInstance(Class clazz, Constructor injectedConstructor) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, SetterMethodNotFoundException
protected Instance getInstance(Parameter parameter) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, SetterMethodNotFoundException
protected Constructor getInjectedConstructor(Class obj)
protected void setFieldValue(Class clazz, Field field, Object object) throws InstantiationException, IllegalAccessException, SetterMethodNotFoundException, IllegalArgumentException, InvocationTargetException
public void connectDependencies()
throws IllegalArgumentException,
IllegalAccessException,
InstantiationException,
SetterMethodNotFoundException,
InvocationTargetException
public <T> T getBean(Class<T> clazz)
Copyright © 2018. All rights reserved.