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)
|
<T> T |
newInstance(Class<T> type,
String factoryMethod)
Instantiates a new instance of the given type by using the factory method
(this will not perform bean post processing)
|
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, String factoryMethod)
type
- the type of object to createfactoryMethod
- to create the new instance via factory method which must be public static and return the type<T> T newInstance(Class<T> type, boolean postProcessBean)
type
- the type of object to createpostProcessBean
- whether to post process the beanboolean supportsAutoWiring()
Apache Camel