Class DefaultInjector

  • All Implemented Interfaces:
    org.apache.camel.spi.Injector

    public class DefaultInjector
    extends Object
    implements org.apache.camel.spi.Injector
    A default implementation of Injector which just uses reflection to instantiate new objects using their zero argument constructor, and then performing bean post processing using CamelBeanPostProcessor.
    • Constructor Detail

      • DefaultInjector

        public DefaultInjector​(org.apache.camel.CamelContext context)
    • 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,
                                 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