1 package org
.argeo
.slc
.execution
.old
;
3 import org
.apache
.commons
.logging
.Log
;
4 import org
.apache
.commons
.logging
.LogFactory
;
5 import org
.argeo
.slc
.execution
.ExecutionFlow
;
6 import org
.springframework
.aop
.TargetSource
;
8 public class ExecutionTargetSource
implements TargetSource
{
9 private final static Log log
= LogFactory
10 .getLog(ExecutionTargetSource
.class);
12 private final String name
;
13 private final Class
<?
> targetClass
;
14 private final ExecutionFlow executionFlow
;
16 public ExecutionTargetSource(ExecutionFlow executionFlow
,
17 Class
<?
> targetClass
, String name
) {
18 this.executionFlow
= executionFlow
;
19 this.targetClass
= targetClass
;
23 public Object
getTarget() throws Exception
{
24 if (log
.isTraceEnabled())
25 log
.trace("Getting object " + name
);
26 Object obj
= executionFlow
.getParameter(name
);
27 if (log
.isTraceEnabled())
28 log
.trace("Target object " + obj
);
32 public Class
getTargetClass() {
36 public boolean isStatic() {
40 public void releaseTarget(Object target
) throws Exception
{
41 // TODO Auto-generated method stub