org.copperengine.spring
Class SpringDependencyInjector

java.lang.Object
  extended by org.copperengine.core.AbstractDependencyInjector
      extended by 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
SpringDependencyInjector()
           
SpringDependencyInjector(org.springframework.context.ApplicationContext context)
           
 
Method Summary
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, setEngine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringDependencyInjector

public SpringDependencyInjector()

SpringDependencyInjector

public SpringDependencyInjector(org.springframework.context.ApplicationContext context)
Method Detail

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