Class SpringDependencyInjector

java.lang.Object
org.copperengine.core.AbstractDependencyInjector
org.copperengine.spring.SpringDependencyInjector
All Implemented Interfaces:
org.copperengine.core.DependencyInjector, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class SpringDependencyInjector
extends org.copperengine.core.AbstractDependencyInjector
implements org.springframework.context.ApplicationContextAware
Connects SPRING to COPPER. Enables COPPER to inject dependencies into workflow instances using a spring container/context.
  • Constructor Summary

    Constructors 
    Constructor Description
    SpringDependencyInjector()  
    SpringDependencyInjector​(org.springframework.context.ApplicationContext context)  
  • Method Summary

    Modifier and Type Method Description
    protected java.lang.Object getBean​(java.lang.String beanId)  
    java.lang.String getType()  
    void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  

    Methods inherited from class org.copperengine.core.AbstractDependencyInjector

    inject

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getType

      public java.lang.String getType()
      Specified by:
      getType in interface org.copperengine.core.DependencyInjector
    • setApplicationContext

      public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • getBean

      protected java.lang.Object getBean​(java.lang.String beanId)
      Specified by:
      getBean in class org.copperengine.core.AbstractDependencyInjector