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,
boolean postProcessBean) |
<T> T |
newInstance(Class<T> type,
String factoryMethod) |
void |
setAutowireMode(int autowireMode) |
void |
setDependencyCheck(boolean dependencyCheck) |
boolean |
supportsAutoWiring() |
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, String factoryMethod)
newInstance
in interface org.apache.camel.spi.Injector
public <T> T newInstance(Class<T> type, boolean postProcessBean)
newInstance
in interface org.apache.camel.spi.Injector
public boolean supportsAutoWiring()
supportsAutoWiring
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