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 /** @deprecated for backward compatibility with pre v0.11.4 approach. */
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
) {