1 package org
.argeo
.slc
.executionflow
;
3 import org
.apache
.commons
.logging
.Log
;
4 import org
.apache
.commons
.logging
.LogFactory
;
5 import org
.springframework
.beans
.factory
.ObjectFactory
;
6 import org
.springframework
.beans
.factory
.config
.Scope
;
8 public class ExecutionScope
implements Scope
{
9 private final static Log log
= LogFactory
.getLog(ExecutionScope
.class);
11 public Object
get(String name
, ObjectFactory objectFactory
) {
12 log
.info("Getting bean "+name
);
13 ExecutionFlow executionFlow
= SimpleExecutionFlow
.getCurrentExecutionFlow();
14 Object obj
= executionFlow
.getAttributes().get(name
);
15 log
.info("Scoped object "+obj
);
19 public String
getConversationId() {
20 ExecutionFlow executionFlow
= SimpleExecutionFlow
.getCurrentExecutionFlow();
21 return executionFlow
.getUuid();
24 public void registerDestructionCallback(String name
, Runnable callback
) {
25 // TODO Auto-generated method stub
29 public Object
remove(String name
) {
30 // TODO Auto-generated method stub