org.apache.camel.spring.spi
Class SpringInjector
java.lang.Object
org.apache.camel.spring.spi.SpringInjector
- All Implemented Interfaces:
- org.apache.camel.spi.Injector
public class SpringInjector
- extends Object
- implements org.apache.camel.spi.Injector
A Spring implementation of Injector
allowing Spring to be used to dependency inject newly created POJOs
- Version:
Constructor Summary |
SpringInjector(org.springframework.context.ConfigurableApplicationContext applicationContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringInjector
public SpringInjector(org.springframework.context.ConfigurableApplicationContext applicationContext)
newInstance
public <T> T newInstance(Class<T> type)
- Specified by:
newInstance
in interface org.apache.camel.spi.Injector
newInstance
public <T> T newInstance(Class<T> type,
Object instance)
- Specified by:
newInstance
in interface org.apache.camel.spi.Injector
getAutowireMode
public int getAutowireMode()
setAutowireMode
public void setAutowireMode(int autowireMode)
isDependencyCheck
public boolean isDependencyCheck()
setDependencyCheck
public void setDependencyCheck(boolean dependencyCheck)
getApplicationContext
public org.springframework.context.ConfigurableApplicationContext getApplicationContext()
Apache Camel