org.apache.camel.spring.spi
Class SpringInjector

java.lang.Object
  extended by 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)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringInjector

public SpringInjector(org.springframework.context.ConfigurableApplicationContext applicationContext)
Method Detail

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