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
public class DefaultInjector extends Object implements org.apache.camel.spi.Injector
A default implementation ofInjector
which just uses reflection to instantiate new objects using their zero argument constructor, and then performing bean post processing usingCamelBeanPostProcessor
.
-
-
Constructor Summary
Constructors Constructor Description DefaultInjector(org.apache.camel.CamelContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
newInstance
public <T> T newInstance(Class<T> type)
- Specified by:
newInstance
in interfaceorg.apache.camel.spi.Injector
-
newInstance
public <T> T newInstance(Class<T> type, String factoryMethod)
- Specified by:
newInstance
in interfaceorg.apache.camel.spi.Injector
-
newInstance
public <T> T newInstance(Class<T> type, boolean postProcessBean)
- Specified by:
newInstance
in interfaceorg.apache.camel.spi.Injector
-
supportsAutoWiring
public boolean supportsAutoWiring()
- Specified by:
supportsAutoWiring
in interfaceorg.apache.camel.spi.Injector
-
-