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
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
newInstance
(Class<T> type) <T> T
newInstance
(Class<T> type, boolean postProcessBean) <T> T
newInstance
(Class<T> type, String factoryMethod) boolean
-
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
-
supportsAutoWiring
public boolean supportsAutoWiring()- Specified by:
supportsAutoWiring
in interfaceorg.apache.camel.spi.Injector
-