1 package org
.argeo
.slc
.core
.execution
;
3 import org
.apache
.commons
.logging
.Log
;
4 import org
.apache
.commons
.logging
.LogFactory
;
5 import org
.argeo
.slc
.runtime
.InstantiationManager
;
6 import org
.springframework
.beans
.factory
.FactoryBean
;
8 public class ParameterRef
implements FactoryBean
<Object
> {
9 private final static Log log
= LogFactory
.getLog(ParameterRef
.class);
11 private InstantiationManager instantiationManager
;
15 private Object object
;
17 public ParameterRef() {
20 public ParameterRef(String name
) {
24 public Object
getObject() throws Exception
{
25 if (log
.isTraceEnabled())
26 log
.debug("Parameter ref called for " + name
);
29 object
= instantiationManager
.getInitializingFlowParameter(name
);
33 public Class
<?
> getObjectType() {
35 return instantiationManager
.getInitializingFlowParameterClass(name
);
37 return object
.getClass();
40 public boolean isSingleton() {
44 public void setInstantiationManager(
45 InstantiationManager instantiationManager
) {
46 this.instantiationManager
= instantiationManager
;
49 public void setName(String name
) {