]>
git.argeo.org Git - gpl/argeo-slc.git/blob - sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/execution/ExecutionRegister.java
1 package org
.argeo
.slc
.execution
;
6 import org
.apache
.commons
.logging
.Log
;
7 import org
.apache
.commons
.logging
.LogFactory
;
8 import org
.springframework
.beans
.factory
.InitializingBean
;
9 import org
.springframework
.beans
.factory
.annotation
.Autowired
;
11 public class ExecutionRegister
implements InitializingBean
{
12 private final static Log log
= LogFactory
.getLog(ExecutionRegister
.class);
15 private Set
<ExecutionFlow
> executionFlows
;
18 private Set
<ExecutionSpec
> executionSpecs
;
20 public void afterPropertiesSet() throws Exception
{
21 log
.debug("Register: " + executionSpecs
.size() + " specs");
22 for (ExecutionSpec spec
: executionSpecs
) {
24 Map
<String
, ExecutionSpecAttribute
> attributes
= spec
26 log
.debug("Spec attributes: ");
27 for (String key
: attributes
.keySet()) {
28 log
.debug(" " + key
+ "\t" + attributes
.get(key
));
32 log
.debug("Register: " + executionFlows
.size() + " flows");
33 for (ExecutionFlow flow
: executionFlows
) {
35 // Map<String, Object> attributes = flow.getAttributes();
36 // log.debug("Specified parameters: ");
37 // for (String key : flow.getExecutionSpec().getAttributes().keySet()) {
41 // + (attributes.containsKey(key) ? "SPECIFIED"