public class SpringInjector extends Object implements org.apache.camel.spi.Injector
Injector
allowing Spring to be used to dependency inject newly created POJOsConstructor and Description |
---|
SpringInjector(org.springframework.context.ConfigurableApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ConfigurableApplicationContext |
getApplicationContext() |
int |
getAutowireMode() |
boolean |
isDependencyCheck() |
<T> T |
newInstance(Class<T> type) |
<T> T |
newInstance(Class<T> type,
Object instance) |
void |
setAutowireMode(int autowireMode) |
void |
setDependencyCheck(boolean dependencyCheck) |
public SpringInjector(org.springframework.context.ConfigurableApplicationContext applicationContext)
public <T> T newInstance(Class<T> type)
newInstance
in interface org.apache.camel.spi.Injector
public <T> T newInstance(Class<T> type, Object instance)
newInstance
in interface org.apache.camel.spi.Injector
public int getAutowireMode()
public void setAutowireMode(int autowireMode)
public boolean isDependencyCheck()
public void setDependencyCheck(boolean dependencyCheck)
public org.springframework.context.ConfigurableApplicationContext getApplicationContext()
Apache Camel