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 (bean post processing)
|
<T> T |
newInstance(Class<T> type,
boolean postProcessBean)
Instantiates a new instance of the given type; possibly injecting values
into the object in the process (bean post processing if enabled)
|
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, boolean postProcessBean)
type
- the type of object to createpostProcessBean
- whether to post process the beanboolean supportsAutoWiring()
Apache Camel