X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2FInstantiationManager.java;h=60e93ec15c08b40d24882f7ffa431f7e8d56da8b;hb=f86db0937b395c7fa96fa4bf4a29cc2c676fe3f5;hp=af2763d66ace105a944a7d76119a485750ad20a8;hpb=1fdb1b4e7b1d2b0cabb6483238301b857a6392fa;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/InstantiationManager.java b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/InstantiationManager.java index af2763d66..60e93ec15 100644 --- a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/InstantiationManager.java +++ b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/InstantiationManager.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Mathieu Baudier + * Copyright (C) 2007-2012 Argeo GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.argeo.slc.core.execution; import java.util.Stack; @@ -24,6 +23,7 @@ import org.argeo.slc.SlcException; import org.argeo.slc.execution.ExecutionFlow; import org.argeo.slc.execution.ExecutionSpecAttribute; +/** Manage parameters that need to be set during the instantiation of a flow */ public class InstantiationManager { private final static Log log = LogFactory @@ -46,7 +46,7 @@ public class InstantiationManager { if (flow instanceof DefaultExecutionFlow) { ((DefaultExecutionFlow) flow).setBeanName(flowName); } - + if (log.isTraceEnabled()) log.trace("Start initialization of " + flow.hashCode() + " (" + flow + " - " + flow.getClass() + ")"); @@ -63,8 +63,8 @@ public class InstantiationManager { if (log.isTraceEnabled()) log.trace("Finish initialization of " + flow.hashCode() + " (" + flow + " - " + flow.getClass() + ")"); - - if(flowStack.get() != null) { + + if (flowStack.get() != null) { ExecutionFlow registeredFlow = flowStack.get().pop(); if (registeredFlow != null) { if (!flow.getName().equals(registeredFlow.getName())) @@ -72,8 +72,7 @@ public class InstantiationManager { // log.info("# flowInitializationFinished " + flowName); // initializingFlow.set(null); } - } - else { + } else { // happens for flows imported as services log.warn("flowInitializationFinished - Flow Stack is null"); }