Interface Injector
- All Known Implementing Classes:
SimpleInjector
public interface Injector
Constructs new instances.
-
Method Summary
Modifier and TypeMethodDescriptiongetInstance
(Class<?> cls) Constructs a new instance of the given class.
-
Method Details
-
getInstance
Object getInstance(Class<?> cls) throws InvocationTargetException, IllegalAccessException, InstantiationException Constructs a new instance of the given class.- Parameters:
cls
- class- Returns:
- object
- Throws:
IllegalAccessException
- thrown on injection faultInstantiationException
- thrown on injection faultInvocationTargetException
- thrown on injection fault
-