public class DefaultInjector extends Object implements org.apache.camel.spi.Injector
Injector
which just uses reflection to
instantiate new objects using their zero argument constructor,
and then performing bean post processing using CamelBeanPostProcessor
.Constructor and Description |
---|
DefaultInjector(org.apache.camel.CamelContext context) |
Modifier and Type | Method and Description |
---|---|
<T> T |
newInstance(Class<T> type) |
<T> T |
newInstance(Class<T> type,
boolean postProcessBean) |
<T> T |
newInstance(Class<T> type,
String factoryMethod) |
boolean |
supportsAutoWiring() |
public <T> T newInstance(Class<T> type)
newInstance
in interface org.apache.camel.spi.Injector
public <T> T newInstance(Class<T> type, String factoryMethod)
newInstance
in interface org.apache.camel.spi.Injector
public <T> T newInstance(Class<T> type, boolean postProcessBean)
newInstance
in interface org.apache.camel.spi.Injector
public boolean supportsAutoWiring()
supportsAutoWiring
in interface org.apache.camel.spi.Injector
Apache Camel