public interface Injector
Modifier and Type | Method and Description |
---|---|
<T> T |
newInstance(Class<T> type)
Instantiates a new instance of the given type possibly injecting values
into the object in the process
|
<T> T |
newInstance(Class<T> type,
Object instance)
Instantiates a new instance of the given object type possibly injecting values
into the object in the process
|
boolean |
supportsAutoWiring()
Whether the injector supports creating new instances using auto-wiring.
|
<T> T newInstance(Class<T> type)
type
- the type of object to create<T> T newInstance(Class<T> type, Object instance)
type
- the type of object to createinstance
- an instance of the type to createboolean supportsAutoWiring()
Apache Camel