Package org.apache.camel.impl.engine
Class DefaultInjector
java.lang.Object
org.apache.camel.impl.engine.DefaultInjector
- All Implemented Interfaces:
org.apache.camel.spi.Injector
A default implementation of
Injector
which just uses reflection to instantiate new objects using their zero
argument constructor, and then performing bean post processing using CamelBeanPostProcessor
.-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.camel.CamelContext
protected final org.apache.camel.spi.CamelBeanPostProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> void
applyBeanPostProcessing
(T bean) <T> T
newInstance
(Class<T> type) <T> T
newInstance
(Class<T> type, boolean postProcessBean) <T> T
newInstance
(Class<T> type, Class<?> factoryClass, String factoryMethod) <T> T
newInstance
(Class<T> type, String factoryMethod) boolean
-
Field Details
-
camelContext
protected final org.apache.camel.CamelContext camelContext -
postProcessor
protected final org.apache.camel.spi.CamelBeanPostProcessor postProcessor
-
-
Constructor Details
-
DefaultInjector
public DefaultInjector(org.apache.camel.CamelContext context)
-
-
Method Details
-
newInstance
- Specified by:
newInstance
in interfaceorg.apache.camel.spi.Injector
-
newInstance
- Specified by:
newInstance
in interfaceorg.apache.camel.spi.Injector
-
newInstance
- Specified by:
newInstance
in interfaceorg.apache.camel.spi.Injector
-
newInstance
- Specified by:
newInstance
in interfaceorg.apache.camel.spi.Injector
-
supportsAutoWiring
public boolean supportsAutoWiring()- Specified by:
supportsAutoWiring
in interfaceorg.apache.camel.spi.Injector
-
applyBeanPostProcessing
protected <T> void applyBeanPostProcessing(T bean)
-