You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2012/02/17 15:09:50 UTC

svn commit: r1245503 - in /incubator/stanbol/trunk/demos/webvie: pom.xml src/main/java/org/apache/stanbol/commons/web/vie/fragment/EnhancerVieWebFragment.java

Author: rwesten
Date: Fri Feb 17 14:09:50 2012
New Revision: 1245503

URL: http://svn.apache.org/viewvc?rev=1245503&view=rev
Log:
cleand up

* unused Service
* unused dependencies
* unnecessary exports

Modified:
    incubator/stanbol/trunk/demos/webvie/pom.xml
    incubator/stanbol/trunk/demos/webvie/src/main/java/org/apache/stanbol/commons/web/vie/fragment/EnhancerVieWebFragment.java

Modified: incubator/stanbol/trunk/demos/webvie/pom.xml
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/demos/webvie/pom.xml?rev=1245503&r1=1245502&r2=1245503&view=diff
==============================================================================
--- incubator/stanbol/trunk/demos/webvie/pom.xml (original)
+++ incubator/stanbol/trunk/demos/webvie/pom.xml Fri Feb 17 14:09:50 2012
@@ -46,9 +46,9 @@
         <extensions>true</extensions>
         <configuration>
           <instructions>
-            <Export-Package>
+<!--             <Export-Package>
               org.apache.stanbol.commons.web.vie.*
-            </Export-Package>
+            </Export-Package>  -->
             <!-- Accept any version of the JAX RS API as Jersey is exposing the
              0.0.0 version -->
             <Import-Package>
@@ -66,88 +66,26 @@
     <!-- dependencies on other IKS modules -->
     <dependency>
       <groupId>org.apache.stanbol</groupId>
-      <artifactId>org.apache.stanbol.contenthub.servicesapi</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.stanbol</groupId>
       <artifactId>org.apache.stanbol.commons.web.base</artifactId>
-    </dependency>
-
-    <!-- needed for the ContentItem resource -->
-    <dependency>
-      <groupId>org.apache.stanbol</groupId>
-      <artifactId>org.apache.stanbol.enhancer.jersey</artifactId>
-    </dependency>
-    <!-- Clerezza dependencies -->
-    <dependency>
-      <groupId>org.apache.clerezza</groupId>
-      <artifactId>rdf.core</artifactId>
-    </dependency>
+    </dependency> 
 
     <!-- Jersey -->
     <dependency>
       <groupId>com.sun.jersey</groupId>
-      <artifactId>jersey-server</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>com.sun.jersey</groupId>
       <artifactId>jersey-core</artifactId>
     </dependency>
-    <dependency>
-      <groupId>javax.servlet</groupId>
-      <artifactId>servlet-api</artifactId>
-    </dependency>
 
     <dependency>
       <groupId>org.freemarker</groupId>
       <artifactId>freemarker</artifactId>
     </dependency>
-    <!-- indirect dependency for freemarker -->
-    <dependency>
-      <groupId>org.codehaus.jettison</groupId>
-      <artifactId>jettison</artifactId>
-    </dependency>
-
-    <!-- generic tax -->
-    <dependency>
-      <groupId>org.slf4j</groupId>
-      <artifactId>slf4j-api</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>commons-io</groupId>
-      <artifactId>commons-io</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>commons-lang</groupId>
-      <artifactId>commons-lang</artifactId>
-    </dependency>
 
     <!-- OSGi tax -->
     <dependency>
-      <groupId>org.osgi</groupId>
-      <artifactId>org.osgi.core</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.osgi</groupId>
-      <artifactId>org.osgi.compendium</artifactId>
-    </dependency>
-    <dependency>
       <groupId>org.apache.felix</groupId>
       <artifactId>org.apache.felix.scr.annotations</artifactId>
     </dependency>
 
-    <!-- for tests -->
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.slf4j</groupId>
-      <artifactId>slf4j-simple</artifactId>
-      <scope>test</scope>
-    </dependency>
-
   </dependencies>
 
 </project>

Modified: incubator/stanbol/trunk/demos/webvie/src/main/java/org/apache/stanbol/commons/web/vie/fragment/EnhancerVieWebFragment.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/demos/webvie/src/main/java/org/apache/stanbol/commons/web/vie/fragment/EnhancerVieWebFragment.java?rev=1245503&r1=1245502&r2=1245503&view=diff
==============================================================================
--- incubator/stanbol/trunk/demos/webvie/src/main/java/org/apache/stanbol/commons/web/vie/fragment/EnhancerVieWebFragment.java (original)
+++ incubator/stanbol/trunk/demos/webvie/src/main/java/org/apache/stanbol/commons/web/vie/fragment/EnhancerVieWebFragment.java Fri Feb 17 14:09:50 2012
@@ -22,19 +22,14 @@ import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 
-import org.apache.clerezza.rdf.core.access.TcManager;
-import org.apache.clerezza.rdf.core.serializedform.Serializer;
 import org.apache.felix.scr.annotations.Activate;
 import org.apache.felix.scr.annotations.Component;
-import org.apache.felix.scr.annotations.Reference;
 import org.apache.felix.scr.annotations.Service;
 import org.apache.stanbol.commons.web.base.LinkResource;
 import org.apache.stanbol.commons.web.base.NavigationLink;
 import org.apache.stanbol.commons.web.base.ScriptResource;
 import org.apache.stanbol.commons.web.base.WebFragment;
 import org.apache.stanbol.commons.web.vie.resource.EnhancerVieRootResource;
-import org.apache.stanbol.contenthub.servicesapi.store.Store;
-import org.apache.stanbol.enhancer.servicesapi.EnhancementJobManager;
 import org.osgi.framework.BundleContext;
 import org.osgi.service.component.ComponentContext;
 
@@ -57,17 +52,6 @@ public class EnhancerVieWebFragment impl
 
     private BundleContext bundleContext;
     
-    @Reference
-    TcManager tcManager;
-
-    @Reference
-    Store store;
-
-    @Reference
-    EnhancementJobManager jobManager;
-
-    @Reference
-    Serializer serializer;
 
     @Override
     public String getName() {