aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1662008 - in /aries/trunk/blueprint/blueprint-web: pom.xml src/main/java/org/apache/aries/blueprint/web/BlueprintContextListener.java
Date Tue, 24 Feb 2015 16:32:56 GMT
Author: sergeyb
Date: Tue Feb 24 16:32:56 2015
New Revision: 1662008

URL: http://svn.apache.org/r1662008
Log:
[ARIES-1300] Minor updates to noosgi BlueprintContainerImpl and BlueprintContextListener to
make it easier to provide custom namespace handler sets

Modified:
    aries/trunk/blueprint/blueprint-web/pom.xml
    aries/trunk/blueprint/blueprint-web/src/main/java/org/apache/aries/blueprint/web/BlueprintContextListener.java

Modified: aries/trunk/blueprint/blueprint-web/pom.xml
URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-web/pom.xml?rev=1662008&r1=1662007&r2=1662008&view=diff
==============================================================================
--- aries/trunk/blueprint/blueprint-web/pom.xml (original)
+++ aries/trunk/blueprint/blueprint-web/pom.xml Tue Feb 24 16:32:56 2015
@@ -45,7 +45,7 @@
     </scm>
 
     <properties>
-        <blueprint.nosgi.version>1.0.0</blueprint.nosgi.version>
+        <blueprint.nosgi.version>1.1.0-SNAPSHOT</blueprint.nosgi.version>
         <lastReleaseVersion>1.0.0</lastReleaseVersion>
     </properties>
 
@@ -53,7 +53,7 @@
         <profile>
             <id>dev</id>
             <properties>
-              <blueprint.nosgi.version>1.0.0-SNAPSHOT</blueprint.nosgi.version>
+              <blueprint.nosgi.version>1.1.0-SNAPSHOT</blueprint.nosgi.version>
             </properties>
         </profile>
     </profiles>

Modified: aries/trunk/blueprint/blueprint-web/src/main/java/org/apache/aries/blueprint/web/BlueprintContextListener.java
URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-web/src/main/java/org/apache/aries/blueprint/web/BlueprintContextListener.java?rev=1662008&r1=1662007&r2=1662008&view=diff
==============================================================================
--- aries/trunk/blueprint/blueprint-web/src/main/java/org/apache/aries/blueprint/web/BlueprintContextListener.java
(original)
+++ aries/trunk/blueprint/blueprint-web/src/main/java/org/apache/aries/blueprint/web/BlueprintContextListener.java
Tue Feb 24 16:32:56 2015
@@ -17,10 +17,6 @@
  */
 package org.apache.aries.blueprint.web;
 
-import javax.servlet.ServletContext;
-import javax.servlet.ServletContextEvent;
-import javax.servlet.ServletContextListener;
-import javax.servlet.ServletException;
 import java.io.InputStream;
 import java.net.URL;
 import java.util.ArrayList;
@@ -29,8 +25,13 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Properties;
-import java.util.Set;
+
+import javax.servlet.ServletContext;
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
+
 import org.apache.aries.blueprint.container.BlueprintContainerImpl;
+import org.apache.aries.blueprint.parser.NamespaceHandlerSet;
 
 /**
  * Initialises all the blueprint XML files called <code>META-INF/blueprint.xml</code>
on the classpath
@@ -83,12 +84,17 @@ public class BlueprintContextListener im
                 }
             }
 
-            BlueprintContainerImpl container = new BlueprintContainerImpl(classLoader, resourcePaths,
properties, true);
+            NamespaceHandlerSet nsHandlerSet = getNamespaceHandlerSet(classLoader);
+            BlueprintContainerImpl container = new BlueprintContainerImpl(classLoader, resourcePaths,
properties, nsHandlerSet, true);
             servletContext.setAttribute(CONTAINER_ATTRIBUTE, container);
         } catch (Exception e) {
             servletContext.log("Failed to startup blueprint container. " + e, e);
         }
     }
+    
+    protected NamespaceHandlerSet getNamespaceHandlerSet(ClassLoader tccl) {
+        return null;
+    }
 
     public void contextDestroyed(ServletContextEvent event) {
         ServletContext servletContext = event.getServletContext();



Mime
View raw message