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.
For more complex implementations try the Spring or Guice implementations.| 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) |
boolean |
supportsAutoWiring() |
public <T> T newInstance(Class<T> type)
newInstance in interface org.apache.camel.spi.Injectorpublic <T> T newInstance(Class<T> type, boolean postProcessBean)
newInstance in interface org.apache.camel.spi.Injectorpublic boolean supportsAutoWiring()
supportsAutoWiring in interface org.apache.camel.spi.InjectorApache Camel