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
) {
23 .warn("Using constructor in parameter ref is deprecated"
24 + " and will be removed in a later version. Set with property 'name'.");
27 public Object
getObject() throws Exception
{
28 if (log
.isTraceEnabled())
29 log
.debug("Parameter ref called for " + name
);
32 object
= instantiationManager
.getInitializingFlowParameter(name
);
36 public Class
<?
> getObjectType() {
38 return instantiationManager
.getInitializingFlowParameterClass(name
);
40 return object
.getClass();
43 public boolean isSingleton() {
47 public void setInstantiationManager(
48 InstantiationManager instantiationManager
) {
49 this.instantiationManager
= instantiationManager
;
52 public void setName(String name
) {