1 package org
.argeo
.slc
.executionflow
;
3 import org
.apache
.commons
.logging
.Log
;
4 import org
.apache
.commons
.logging
.LogFactory
;
5 import org
.springframework
.aop
.TargetSource
;
7 public class ExecutionTargetSource
implements TargetSource
{
8 private final static Log log
= LogFactory
9 .getLog(ExecutionTargetSource
.class);
12 private Class targetClass
;
14 public Object
getTarget() throws Exception
{
15 if (log
.isTraceEnabled())
16 log
.trace("Getting object " + name
);
17 ExecutionFlow executionFlow
= ExecutionContext
.getCurrentFlow();
18 Object obj
= executionFlow
.getAttributes().get(name
);
19 if (log
.isTraceEnabled())
20 log
.trace("Target object " + obj
);
24 public Class
getTargetClass() {
28 public boolean isStatic() {
32 public void releaseTarget(Object target
) throws Exception
{
33 // TODO Auto-generated method stub
37 public void setName(String name
) {
41 public void setTargetClass(Class targetClass
) {
42 this.targetClass
= targetClass
;