commit | ca30f66d5bd8ece90c1a142ef9d3221186e015a2 | [log] [tgz] |
---|---|---|
author | Guillaume Nodet <gnodet@apache.org> | Fri Jun 19 07:44:45 2009 +0000 |
committer | Guillaume Nodet <gnodet@apache.org> | Fri Jun 19 07:44:45 2009 +0000 |
tree | 1cb6d7b9fc5ff73642a834828f9fda409ef366c6 | |
parent | 748337ab089c86df3845ef1f9a7c0cf83f60bd99 [diff] |
Fix stateful actions as they were currently reused instead of recreated git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@786405 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/gshell/gshell-core/src/main/java/org/apache/felix/karaf/gshell/core/config/NamespaceHandler.java b/karaf/gshell/gshell-core/src/main/java/org/apache/felix/karaf/gshell/core/config/NamespaceHandler.java index 4b29cd7..6a514bc 100644 --- a/karaf/gshell/gshell-core/src/main/java/org/apache/felix/karaf/gshell/core/config/NamespaceHandler.java +++ b/karaf/gshell/gshell-core/src/main/java/org/apache/felix/karaf/gshell/core/config/NamespaceHandler.java
@@ -189,6 +189,8 @@ private MutableBeanMetadata parseAction(ParserContext context, ComponentMetadata enclosingComponent, Element element) { MutableBeanMetadata action = context.createMetadata(MutableBeanMetadata.class); + action.setInitialization(MutableBeanMetadata.INITIALIZATION_LAZY); + action.setScope(MutableBeanMetadata.SCOPE_PROTOTYPE); action.setClassName(element.getAttribute("class")); NodeList children = element.getChildNodes(); for (int i = 0; i < children.getLength(); i++) {