You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by gn...@apache.org on 2009/06/18 23:07:46 UTC

svn commit: r786276 - in /felix/trunk/karaf/webconsole/src/main/resources: META-INF/spring/webconsole.xml OSGI-INF/ OSGI-INF/blueprint/ OSGI-INF/blueprint/webconsole.xml

Author: gnodet
Date: Thu Jun 18 21:07:46 2009
New Revision: 786276

URL: http://svn.apache.org/viewvc?rev=786276&view=rev
Log:
Use blueprint for web console

Added:
    felix/trunk/karaf/webconsole/src/main/resources/OSGI-INF/
    felix/trunk/karaf/webconsole/src/main/resources/OSGI-INF/blueprint/
    felix/trunk/karaf/webconsole/src/main/resources/OSGI-INF/blueprint/webconsole.xml
Removed:
    felix/trunk/karaf/webconsole/src/main/resources/META-INF/spring/webconsole.xml

Added: felix/trunk/karaf/webconsole/src/main/resources/OSGI-INF/blueprint/webconsole.xml
URL: http://svn.apache.org/viewvc/felix/trunk/karaf/webconsole/src/main/resources/OSGI-INF/blueprint/webconsole.xml?rev=786276&view=auto
==============================================================================
--- felix/trunk/karaf/webconsole/src/main/resources/OSGI-INF/blueprint/webconsole.xml (added)
+++ felix/trunk/karaf/webconsole/src/main/resources/OSGI-INF/blueprint/webconsole.xml Thu Jun 18 21:07:46 2009
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+           xmlns:cm="http://www.osgi.org/xmlns/blueprint-cm/v1.0.0">
+
+    <reference id="featuresService" interface="org.apache.felix.karaf.gshell.features.FeaturesService" />
+
+    <bean id="featuresPlugin" class="org.apache.felix.karaf.webconsole.FeaturesPlugin">
+        <property name="featuresService" ref="featuresService" />
+    </bean>
+
+    <service ref="featuresPlugin" interface="javax.servlet.Servlet" >
+        <service-properties>
+            <entry key="felix.webconsole.label" value="features"/>
+        </service-properties>
+    </service>
+
+</blueprint>