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
  • Constructor Details

    • SpringInjector

      public SpringInjector(org.springframework.context.ConfigurableApplicationContext applicationContext)
  • Method Details

    • 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, String factoryMethod)
      Specified by:
      newInstance in interface org.apache.camel.spi.Injector
    • newInstance

      public <T> T newInstance(Class<T> type, Class<?> factoryClass, String factoryMethod)
      Specified by:
      newInstance in interface org.apache.camel.spi.Injector
    • newInstance

      public <T> T newInstance(Class<T> type, boolean postProcessBean)
      Specified by:
      newInstance in interface org.apache.camel.spi.Injector
    • supportsAutoWiring

      public boolean supportsAutoWiring()
      Specified by:
      supportsAutoWiring 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()