clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1424354 - /incubator/clerezza/trunk/jaxrs.stanbol.fragments/src/main/scala/org/apache/clerezza/jaxrs/stanbol/webfragements/WebFragmentRunner.scala
Date Thu, 20 Dec 2012 07:41:54 GMT
Author: reto
Date: Thu Dec 20 07:41:54 2012
New Revision: 1424354

URL: http://svn.apache.org/viewvc?rev=1424354&view=rev
Log:
CLEREZZA-722: unbinding ContextResolverImpl instance

Modified:
    incubator/clerezza/trunk/jaxrs.stanbol.fragments/src/main/scala/org/apache/clerezza/jaxrs/stanbol/webfragements/WebFragmentRunner.scala

Modified: incubator/clerezza/trunk/jaxrs.stanbol.fragments/src/main/scala/org/apache/clerezza/jaxrs/stanbol/webfragements/WebFragmentRunner.scala
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/jaxrs.stanbol.fragments/src/main/scala/org/apache/clerezza/jaxrs/stanbol/webfragements/WebFragmentRunner.scala?rev=1424354&r1=1424353&r2=1424354&view=diff
==============================================================================
--- incubator/clerezza/trunk/jaxrs.stanbol.fragments/src/main/scala/org/apache/clerezza/jaxrs/stanbol/webfragements/WebFragmentRunner.scala
(original)
+++ incubator/clerezza/trunk/jaxrs.stanbol.fragments/src/main/scala/org/apache/clerezza/jaxrs/stanbol/webfragements/WebFragmentRunner.scala
Thu Dec 20 07:41:54 2012
@@ -83,6 +83,7 @@ class WebFragmentRunner extends javax.se
   
   private var corsOrigins : java.util.Set[String] = _
   private var exposedHeaders : java.util.Set[String] = _
+  private var contextResolverImpl : ContextResolverImpl = _
 
 
 
@@ -207,7 +208,8 @@ class WebFragmentRunner extends javax.se
     servletContext.setAttribute(BaseStanbolResource.NAVIGATION_LINKS, navigationLinks);
     servletContext.setAttribute(CORS_ORIGIN, corsOrigins);
     servletContext.setAttribute(CORS_ACCESS_CONTROL_EXPOSE_HEADERS, exposedHeaders);
-    winkRequestProcessor.bindComponent(new ContextResolverImpl(servletContext))
+    contextResolverImpl = new ContextResolverImpl(servletContext)
+    winkRequestProcessor.bindComponent(contextResolverImpl)
   }
   
   override def doFilter(request: ServletRequest, response: ServletResponse,
@@ -216,6 +218,7 @@ class WebFragmentRunner extends javax.se
 	}
 
 	override def destroy() {
+      winkRequestProcessor.unbindComponent(contextResolverImpl)
 	}
 
 



Mime
View raw message