From f6a51224cc350c7d3b42b15051a9c074cce48b5d Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Thu, 8 Jul 2010 06:18:58 +0000 Subject: Add a public getNodeFactory() method to WebAppHelper to allow a servlet to get the NodeFactory and create nodes bound to the Webapp's environment. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@961583 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java b/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java index d7569eb91e..41ae426272 100644 --- a/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java +++ b/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java @@ -223,4 +223,8 @@ public class WebAppHelper { servletContext.setAttribute(WebAppHelper.SCA_NODE_ATTRIBUTE, null); } } + + public static NodeFactory getNodeFactory() { + return factory; + } } -- cgit v1.2.3