1 package org
.argeo
.slc
.execution
;
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);
11 private final String name
;
12 private final Class
<?
> targetClass
;
13 private final ExecutionFlow executionFlow
;
15 public ExecutionTargetSource(ExecutionFlow executionFlow
,
16 Class
<?
> targetClass
, String name
) {
17 this.executionFlow
= executionFlow
;
18 this.targetClass
= targetClass
;
22 public Object
getTarget() throws Exception
{
23 if (log
.isTraceEnabled())
24 log
.trace("Getting object " + name
);
25 Object obj
= executionFlow
.getParameter(name
);
26 if (log
.isTraceEnabled())
27 log
.trace("Target object " + obj
);
31 public Class
getTargetClass() {
35 public boolean isStatic() {
39 public void releaseTarget(Object target
) throws Exception
{
40 // TODO Auto-generated method stub