1 package org
.argeo
.slc
.core
.execution
;
3 import org
.apache
.commons
.logging
.Log
;
4 import org
.apache
.commons
.logging
.LogFactory
;
5 import org
.springframework
.beans
.factory
.FactoryBean
;
7 public class ParameterRef
implements FactoryBean
{
8 private final static Log log
= LogFactory
.getLog(ParameterRef
.class);
10 private InstantiationManager instantiationManager
;
14 private Object object
;
16 public ParameterRef() {
19 public ParameterRef(String name
) {
23 public Object
getObject() throws Exception
{
24 if (log
.isTraceEnabled())
25 log
.debug("Parameter ref called for " + name
);
28 object
= instantiationManager
.getInitializingFlowParameter(name
);
32 public Class
<?
> getObjectType() {
34 return instantiationManager
.getInitializingFlowParameterClass(name
);
36 return object
.getClass();
39 public boolean isSingleton() {
43 public void setInstantiationManager(
44 InstantiationManager instantiationManager
) {
45 this.instantiationManager
= instantiationManager
;
48 public void setName(String name
) {