You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cl...@apache.org on 2008/10/06 10:54:23 UTC
svn commit: r702020 [1/2] - in /felix/sandbox/clement/ipojo-tutorials:
advanced.tutorial/vendor.buns-and-wieners/
advanced.tutorial/vendor.customer.creator/
advanced.tutorial/vendor.customer/ advanced.tutorial/vendor.hotdog/
advanced.tutorial/vendor.po...
Author: clement
Date: Mon Oct 6 01:54:16 2008
New Revision: 702020
URL: http://svn.apache.org/viewvc?rev=702020&view=rev
Log:
Commits an update of the different iPOJO tutorials:
- advanced tutorial
- config admin tutorial (initial commit)
- junit4osgi tutorial (initial commit)
Added:
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/ (with props)
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/build.xml
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/config.admin.tutorial.bnd
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/libs/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/libs/org.apache.felix.shell-1.0.0.jar (with props)
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/libs/org.osgi.compendium-1.0.0.jar (with props)
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/libs/org.osgi.core-1.0.0.jar (with props)
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/metadata.xml
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/CreateConfiguration.java
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/DeleteConfiguration.java
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/ListConfiguration.java
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/UpdateConfiguration.java
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello1.java
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello2.java
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello3.java
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/service/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/service/Hello.java
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/tasks/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/tasks/bnd-0.0.223.jar (with props)
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/tasks/org.apache.felix.ipojo.ant-0.8.0-SNAPSHOT.jar (with props)
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/LICENSE
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/LICENSE.kxml2
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/NOTICE
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bin/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bin/felix.jar (with props)
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bundle/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bundle/org.apache.felix.bundlerepository-1.0.3.jar (with props)
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bundle/org.apache.felix.shell-1.0.1.jar (with props)
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bundle/org.apache.felix.shell.tui-1.0.1.jar (with props)
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/conf/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/conf/config.properties
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/ipojo/
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/ipojo/org.apache.felix.configadmin-1.0.1.jar (with props)
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/ipojo/org.apache.felix.ipojo-0.8.0-SNAPSHOT.jar (with props)
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/ipojo/org.apache.felix.ipojo.arch-0.8.0-SNAPSHOT.jar (with props)
felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/script.txt
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/ (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/Junit-Example.bnd
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/build.xml
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/lib/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/lib/org.apache.felix.ipojo.junit4osgi-0.8.0-SNAPSHOT.jar (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/example/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/example/SimpleTestCase.java
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/example/SimpleTestSuite.java
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/money/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/money/Money.java
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/money/osgi/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/task/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/task/bnd-0.0.223.jar (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/ (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/Junit-OSGi-Example.bnd
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/build.xml
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/lib/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/lib/org.apache.felix.ipojo.junit4osgi-0.8.0-SNAPSHOT.jar (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/lib/org.osgi.core-1.1.0-SNAPSHOT.jar (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/src/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/src/junit/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/src/junit/example/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/src/junit/example/SimpleTestCase.java
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/src/junit/example/SimpleTestSuite.java
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/src/junit/service/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/src/junit/service/hello/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/src/junit/service/hello/HelloService.java
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/src/junit/service/hello/impl/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/src/junit/service/hello/impl/Activator.java
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/src/junit/service/hello/impl/HelloProvider.java
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/task/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-OSGi-Example/task/bnd-0.0.223.jar (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/LICENSE
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/LICENSE.kxml2
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/NOTICE
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/bin/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/bin/felix.jar (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/bundle/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/bundle/org.apache.felix.bundlerepository-1.0.3.jar (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/bundle/org.apache.felix.shell-1.0.1.jar (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/bundle/org.apache.felix.shell.tui-1.0.1.jar (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/conf/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/conf/config.properties
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/ipojo/
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/ipojo/org.apache.felix.ipojo-0.8.0-SNAPSHOT.jar (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/ipojo/org.apache.felix.ipojo.handler.extender.pattern-0.8.0-SNAPSHOT.jar (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/ipojo/org.apache.felix.ipojo.junit4osgi-0.8.0-SNAPSHOT.jar (with props)
felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/felix/ipojo/org.apache.felix.ipojo.junit4osgi.felix-command-0.8.0-SNAPSHOT.jar (with props)
Modified:
felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.buns-and-wieners/ (props changed)
felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.customer/ (props changed)
felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.customer.creator/ (props changed)
felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/ (props changed)
felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/ (props changed)
Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.buns-and-wieners/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Oct 6 01:54:16 2008
@@ -1 +1,2 @@
-dist
output*
+libs
+output
Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.customer/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Oct 6 01:54:16 2008
@@ -1 +1,2 @@
-dist
output*
+libs
+output
Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.customer.creator/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Oct 6 01:54:16 2008
@@ -1 +1,2 @@
-dist
output*
+libs
+output
Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Oct 6 01:54:16 2008
@@ -1 +1,2 @@
-dist
output*
+libs
+output
Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Oct 6 01:54:16 2008
@@ -1 +1,2 @@
-dist
output*
+libs
+output
Propchange: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Oct 6 01:54:16 2008
@@ -0,0 +1,3 @@
+.classpath
+.project
+bin
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/build.xml
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/build.xml?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/build.xml (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/build.xml Mon Oct 6 01:54:16 2008
@@ -0,0 +1,50 @@
+<?xml version="1.0"?>
+
+<project name="config.admin.tutorial" default="package" basedir=".">
+
+ <property name="src.dir" value="src"/>
+ <property name="lib.dir" value="libs"/>
+ <property name="build.dir" value="output/classes"/>
+ <property name="output.dir" value="output"/>
+
+ <taskdef resource="aQute/bnd/ant/taskdef.properties"
+ classpath="tasks/bnd-0.0.223.jar"/>
+ <taskdef name="ipojo" classpath="tasks/org.apache.felix.ipojo.ant-0.8.0-SNAPSHOT.jar"
+ classname="org.apache.felix.ipojo.task.IPojoTask"/>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ <delete dir="${output.dir}"/>
+ </target>
+
+ <target name="compile" depends="clean">
+ <mkdir dir="${output.dir}"/>
+ <mkdir dir="${build.dir}"/>
+
+ <javac srcdir="${src.dir}"
+ destdir="${build.dir}"
+ debug="on"
+ >
+ <classpath>
+ <fileset dir="libs">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </javac>
+
+ </target>
+
+ <target name="package" depends="compile">
+ <bnd
+ classpath="${build.dir}"
+ failok="false"
+ exceptions="true"
+ files="${ant.project.name}.bnd"
+ output="${output.dir}"/>
+ <ipojo
+ input="${output.dir}/${ant.project.name}.jar"
+ metadata="metadata.xml"
+ />
+ </target>
+
+</project>
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/config.admin.tutorial.bnd
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/config.admin.tutorial.bnd?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/config.admin.tutorial.bnd (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/config.admin.tutorial.bnd Mon Oct 6 01:54:16 2008
@@ -0,0 +1,3 @@
+Import-Package: *
+Private-Package: org.apache.felix.ipojo.example.ca.component, org.apache.felix.ipojo.example.ca.comand
+Export-Package: org.apache.felix.ipojo.example.ca.service
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/libs/org.apache.felix.shell-1.0.0.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/libs/org.apache.felix.shell-1.0.0.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.
Propchange: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/libs/org.apache.felix.shell-1.0.0.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/libs/org.osgi.compendium-1.0.0.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/libs/org.osgi.compendium-1.0.0.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.
Propchange: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/libs/org.osgi.compendium-1.0.0.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/libs/org.osgi.core-1.0.0.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/libs/org.osgi.core-1.0.0.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.
Propchange: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/libs/org.osgi.core-1.0.0.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/metadata.xml
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/metadata.xml?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/metadata.xml (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/metadata.xml Mon Oct 6 01:54:16 2008
@@ -0,0 +1,41 @@
+<ipojo>
+<!-- Declares commands -->
+<component classname="org.apache.felix.ipojo.example.ca.comand.CreateConfiguration" architecture="false" factory="false">
+ <provides/>
+ <requires field="pm"/>
+</component>
+<component classname="org.apache.felix.ipojo.example.ca.comand.DeleteConfiguration" architecture="false" factory="false">
+ <provides/>
+ <requires field="pm"/>
+</component>
+<component classname="org.apache.felix.ipojo.example.ca.comand.ListConfiguration" architecture="false" factory="false">
+ <provides/>
+ <requires field="pm"/>
+</component>
+<component classname="org.apache.felix.ipojo.example.ca.comand.UpdateConfiguration" architecture="false" factory="false">
+ <provides/>
+ <requires field="pm"/>
+</component>
+<!-- Create one instance of each commands -->
+<instance component="org.apache.felix.ipojo.example.ca.comand.CreateConfiguration"/>
+<instance component="org.apache.felix.ipojo.example.ca.comand.DeleteConfiguration"/>
+<instance component="org.apache.felix.ipojo.example.ca.comand.ListConfiguration"/>
+<instance component="org.apache.felix.ipojo.example.ca.comand.UpdateConfiguration"/>
+
+<!-- Hello1 component type -->
+<component classname="org.apache.felix.ipojo.example.ca.component.Hello1" factory="hello1" immediate="true" architecture="true"/>
+<!-- Hello2 component type -->
+<component classname="org.apache.felix.ipojo.example.ca.component.Hello2" factory="hello2" immediate="true" architecture="true">
+ <callback transition="invalidate" method="stop"/>
+ <properties>
+ <property field="m_name" name="to" method="setName"/>
+ </properties>
+</component>
+<!-- Hello3 component type -->
+<component classname="org.apache.felix.ipojo.example.ca.component.Hello3" factory="hello3" architecture="true">
+ <provides/>
+ <properties propagation="true">
+ <property field="m_name" value="clement"/>
+ </properties>
+</component>
+</ipojo>
\ No newline at end of file
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/CreateConfiguration.java
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/CreateConfiguration.java?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/CreateConfiguration.java (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/CreateConfiguration.java Mon Oct 6 01:54:16 2008
@@ -0,0 +1,108 @@
+/*
+ * 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.
+ */
+package org.apache.felix.ipojo.example.ca.comand;
+
+import java.io.IOException;
+import java.io.PrintStream;
+import java.util.Properties;
+
+import org.apache.felix.shell.Command;
+import org.osgi.service.cm.Configuration;
+import org.osgi.service.cm.ConfigurationAdmin;
+
+/**
+ * A Felix shell command pushing a factory configuration inside a configuration admin.
+ */
+public class CreateConfiguration implements Command {
+
+ /**
+ * Configuration Admin service dependency.
+ */
+ ConfigurationAdmin pm;
+
+ /**
+ * Execute the command. The command pattern is: create_conf <component-type> <instance-name> <property-name=property-value>*
+ * @param line : command line
+ * @param out : out print stream
+ * @param err : error print stream
+ * @see org.apache.felix.shell.Command#execute(java.lang.String, java.io.PrintStream, java.io.PrintStream)
+ */
+ public void execute(String line, PrintStream out, PrintStream err) {
+ // Parse the command line
+ line = line.substring(getName().length()).trim();
+ ;
+ String[] args = line.split(" ");
+ if (args.length < 1) {
+ err.println(getUsage());
+ return;
+ }
+
+ String type = args[0];
+ Properties props = new Properties();
+ props.put("service.factoryPid", type);
+
+ for (int i = 1; i < args.length; i++) {
+ String[] prop = args[i].split("=");
+ if (prop.length != 2) {
+ err.println(getUsage());
+ return;
+ }
+ props.put(prop[0], prop[1]);
+ }
+
+ out.println("Insert the configuration : " + props);
+
+ try {
+ Configuration conf = pm.createFactoryConfiguration(type);
+ conf.update(props);
+ out.println("Created configuration: " + conf.getPid());
+ } catch (IOException e) {
+ err.println("An error occurs when inserting a configuration : " + e.getMessage());
+ }
+
+ }
+
+ /**
+ * Gets the command name.
+ * @return the command name (i.e. create_conf).
+ * @see org.apache.felix.shell.Command#getName()
+ */
+ public String getName() {
+ return "create_conf";
+ }
+
+ /**
+ * Gets the command short description.
+ * @return a short description about this command.
+ * @see org.apache.felix.shell.Command#getShortDescription()
+ */
+ public String getShortDescription() {
+ return "Command to insert a new factory configuration in the config admin";
+ }
+
+ /**
+ * Gets command usage message.
+ * @return the command pattern
+ * @see org.apache.felix.shell.Command#getUsage()
+ */
+ public String getUsage() {
+ return "create_conf <component-type> <instance-name> <property-name=property-value>*";
+ }
+
+}
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/DeleteConfiguration.java
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/DeleteConfiguration.java?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/DeleteConfiguration.java (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/DeleteConfiguration.java Mon Oct 6 01:54:16 2008
@@ -0,0 +1,117 @@
+/*
+ * 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.
+ */
+package org.apache.felix.ipojo.example.ca.comand;
+
+import java.io.IOException;
+import java.io.PrintStream;
+
+import org.apache.felix.shell.Command;
+import org.osgi.framework.InvalidSyntaxException;
+import org.osgi.service.cm.Configuration;
+import org.osgi.service.cm.ConfigurationAdmin;
+
+/**
+ * A Felix shell command deleting a factory configuration from the configuration admin.
+ */
+public class DeleteConfiguration implements Command {
+
+ /**
+ * Configuration Admin service dependency.
+ */
+ ConfigurationAdmin pm;
+
+ /**
+ * Execute the command. The command pattern is: delete_conf <instance-name> If the instance name is 'all', it deletes all stored configurations.
+ * @param line : command line
+ * @param out : out print stream
+ * @param err : error print stream
+ * @see org.apache.felix.shell.Command#execute(java.lang.String, java.io.PrintStream, java.io.PrintStream)
+ */
+ public void execute(String line, PrintStream out, PrintStream err) {
+ // Parse the command line
+ line = line.substring(getName().length()).trim();
+ ;
+ String[] args = line.split(" ");
+ if (args.length > 1) {
+ err.println(getUsage());
+ return;
+ }
+
+ String name = args[0];
+ if (name.equals("all")) {
+ deleteAll();
+ return;
+ }
+
+ out.println("Delete the configuration : " + name);
+
+ try {
+ Configuration conf = pm.getConfiguration(name);
+ conf.delete();
+ } catch (IOException e) {
+ err.println("An error occurs when deleting a configuration : " + e.getMessage());
+ }
+ }
+
+ /**
+ * Delete all configurations
+ */
+ private void deleteAll() {
+ Configuration[] confs;
+ try {
+ confs = pm.listConfigurations(null);
+ for (int i = 0; i < confs.length; i++) {
+ System.out.println("Delete the configuration : " + confs[i].getProperties());
+ confs[i].delete();
+ }
+ } catch (IOException e) {
+ e.printStackTrace();
+ } catch (InvalidSyntaxException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * Gets the command name.
+ * @return the command name (i.e. delete_conf).
+ * @see org.apache.felix.shell.Command#getName()
+ */
+ public String getName() {
+ return "delete_conf";
+ }
+
+ /**
+ * Gets the command short description.
+ * @return a short description about this command.
+ * @see org.apache.felix.shell.Command#getShortDescription()
+ */
+ public String getShortDescription() {
+ return "Command to delete a factory configuration from the config admin";
+ }
+
+ /**
+ * Gets command usage message.
+ * @return the command pattern
+ * @see org.apache.felix.shell.Command#getUsage()
+ */
+ public String getUsage() {
+ return "delete_conf <instance-name>";
+ }
+
+}
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/ListConfiguration.java
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/ListConfiguration.java?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/ListConfiguration.java (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/ListConfiguration.java Mon Oct 6 01:54:16 2008
@@ -0,0 +1,89 @@
+/*
+ * 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.
+ */
+package org.apache.felix.ipojo.example.ca.comand;
+
+import java.io.IOException;
+import java.io.PrintStream;
+
+import org.apache.felix.shell.Command;
+import org.osgi.framework.InvalidSyntaxException;
+import org.osgi.service.cm.Configuration;
+import org.osgi.service.cm.ConfigurationAdmin;
+
+/**
+ * A Felix shell command listing configurations stored in the configuration admin.
+ */
+public class ListConfiguration implements Command {
+
+ /**
+ * Configuration Admin service dependency.
+ */
+ ConfigurationAdmin pm;
+
+ /**
+ * Execute the command. The command pattern is just:
+ * list_conf
+ * @param line : command line
+ * @param out : out print stream
+ * @param err : error print stream
+ * @see org.apache.felix.shell.Command#execute(java.lang.String, java.io.PrintStream, java.io.PrintStream)
+ */
+ public void execute(String line, PrintStream out, PrintStream err) {
+ Configuration[] confs = null;
+ try {
+ confs = pm.listConfigurations(null);
+ for (int i = 0; i < confs.length; i++) {
+ out.println(confs[i].getPid() + " : " + confs[i].getProperties());
+ }
+ } catch (IOException e) {
+ err.println("An error occurs when listing configurations : " + e.getMessage());
+ } catch (InvalidSyntaxException e) {
+ err.println("An error occurs when listing configurations : " + e.getMessage());
+ }
+
+ }
+
+ /**
+ * Gets the command name.
+ * @return the command name (i.e. list_conf).
+ * @see org.apache.felix.shell.Command#getName()
+ */
+ public String getName() {
+ return "list_conf";
+ }
+
+ /**
+ * Gets the command short description.
+ * @return a short description about this command.
+ * @see org.apache.felix.shell.Command#getShortDescription()
+ */
+ public String getShortDescription() {
+ return "Command list configurations from the config admin";
+ }
+
+ /**
+ * Gets command usage message.
+ * @return the command pattern
+ * @see org.apache.felix.shell.Command#getUsage()
+ */
+ public String getUsage() {
+ return "list_conf";
+ }
+
+}
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/UpdateConfiguration.java
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/UpdateConfiguration.java?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/UpdateConfiguration.java (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/comand/UpdateConfiguration.java Mon Oct 6 01:54:16 2008
@@ -0,0 +1,103 @@
+/*
+ * 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.
+ */
+package org.apache.felix.ipojo.example.ca.comand;
+
+import java.io.IOException;
+import java.io.PrintStream;
+import java.util.Dictionary;
+import java.util.Properties;
+
+import org.apache.felix.shell.Command;
+import org.osgi.service.cm.Configuration;
+import org.osgi.service.cm.ConfigurationAdmin;
+
+/**
+ * A Felix shell command updating a factory configuration inside a configuration admin.
+ */
+public class UpdateConfiguration implements Command {
+
+ /**
+ * Configuration Admin service dependency.
+ */
+ ConfigurationAdmin pm;
+
+ /**
+ * Execute the command. The command pattern is:
+ * update_conf <instance-name> <property-name=property-value>*
+ * @param line : command line
+ * @param out : out print stream
+ * @param err : error print stream
+ * @see org.apache.felix.shell.Command#execute(java.lang.String, java.io.PrintStream, java.io.PrintStream)
+ */
+ public void execute(String line, PrintStream out, PrintStream err) {
+ // Parse the command line
+ line = line.substring(getName().length()).trim();;
+ String[] args = line.split(" ");
+ if(args.length < 1) { err.println(getUsage()); return; }
+
+ String name = args[0];
+
+ try {
+
+ Configuration conf = pm.getConfiguration(name);
+ Dictionary props = new Properties();
+
+ for(int i = 1; i < args.length; i++) {
+ String[] prop = args[i].split("=");
+ if(prop.length != 2) { err.println(getUsage()); return; }
+ props.put(prop[0], prop[1]);
+ }
+
+ conf.update(props);
+
+ out.println("Update the configuration : " + props);
+
+ } catch (IOException e) {
+ err.println("An error occurs when updating a configuration : " + e.getMessage());
+ }
+ }
+
+ /**
+ * Gets the command name.
+ * @return the command name (i.e. update_conf).
+ * @see org.apache.felix.shell.Command#getName()
+ */
+ public String getName() {
+ return "update_conf";
+ }
+
+ /**
+ * Gets the command short description.
+ * @return a short description about this command.
+ * @see org.apache.felix.shell.Command#getShortDescription()
+ */
+ public String getShortDescription() {
+ return "Command to update an existing configuration in the config admin";
+ }
+
+ /**
+ * Gets command usage message.
+ * @return the command pattern
+ * @see org.apache.felix.shell.Command#getUsage()
+ */
+ public String getUsage() {
+ return "update_conf <instance-name> <property-name=property-value>*";
+ }
+
+}
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello1.java
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello1.java?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello1.java (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello1.java Mon Oct 6 01:54:16 2008
@@ -0,0 +1,35 @@
+/*
+ * 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.
+ */
+package org.apache.felix.ipojo.example.ca.component;
+
+/**
+ * A very simple component implementation.
+ * This implementation just display 'Hello'
+ */
+public class Hello1 {
+
+ /**
+ * Constructor.
+ * Displays hello.
+ */
+ public Hello1() {
+ System.out.println("Hello");
+ }
+
+}
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello2.java
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello2.java?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello2.java (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello2.java Mon Oct 6 01:54:16 2008
@@ -0,0 +1,52 @@
+/*
+ * 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.
+ */
+package org.apache.felix.ipojo.example.ca.component;
+
+/**
+ * A very simple component implementation.
+ * This implementation just display 'Good By + $name' when the instance is stopping and
+ * 'Hello + $name' when this instance is starting or is reconfigured.
+ */
+public class Hello2 {
+
+ /**
+ * Configuration property.
+ */
+ String m_name;
+
+ /**
+ * This method is called when this instance is stopping.
+ * Displays 'Good By' + $name.
+ */
+ public void stop() {
+ System.out.println("Good by " + m_name);
+ }
+
+ /**
+ * Update the name property.
+ * This method is called when this instance is starting (first configuration) or when the instance is reconfigured.
+ * Displays 'Hello + $name'
+ * @param newName : the new name value.
+ */
+ public void setName(String newName) {
+ m_name = newName;
+ System.out.println("Hello " + m_name);
+ }
+
+}
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello3.java
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello3.java?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello3.java (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/component/Hello3.java Mon Oct 6 01:54:16 2008
@@ -0,0 +1,45 @@
+/*
+ * 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.
+ */
+package org.apache.felix.ipojo.example.ca.component;
+
+import org.apache.felix.ipojo.example.ca.service.Hello;
+
+/**
+ * A very simple component implementation implementing the Hello Service.
+ * This implementation just display 'Hello $name' when this instance is starting.
+ * {@link Hello}
+ */
+public class Hello3 implements Hello {
+
+ /**
+ * Configuration property pushed by iPOJO.
+ */
+ String m_name;
+
+ /**
+ * Hello service implementation.
+ * Returns a Hello message.
+ * @return the 'Hello +$name' message
+ * @see org.apache.felix.ipojo.example.ca.service.Hello#hello()
+ */
+ public String hello() {
+ return "hello " + m_name;
+ }
+
+}
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/service/Hello.java
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/service/Hello.java?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/service/Hello.java (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/src/org/apache/felix/ipojo/example/ca/service/Hello.java Mon Oct 6 01:54:16 2008
@@ -0,0 +1,32 @@
+/*
+ * 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.
+ */
+package org.apache.felix.ipojo.example.ca.service;
+
+/**
+ * Hello Service interface.
+ */
+public interface Hello {
+
+ /**
+ * Gets a hello message.
+ * @return a hello message.
+ */
+ String hello();
+
+}
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/tasks/bnd-0.0.223.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/tasks/bnd-0.0.223.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.
Propchange: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/tasks/bnd-0.0.223.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/tasks/org.apache.felix.ipojo.ant-0.8.0-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/tasks/org.apache.felix.ipojo.ant-0.8.0-SNAPSHOT.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.
Propchange: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/config.admin.tutorial/tasks/org.apache.felix.ipojo.ant-0.8.0-SNAPSHOT.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/LICENSE
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/LICENSE?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/LICENSE (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/LICENSE Mon Oct 6 01:54:16 2008
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed 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.
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/LICENSE.kxml2
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/LICENSE.kxml2?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/LICENSE.kxml2 (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/LICENSE.kxml2 Mon Oct 6 01:54:16 2008
@@ -0,0 +1,19 @@
+Copyright (c) 2002,2003, Stefan Haustein, Oberhausen, Rhld., Germany
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+IN THE SOFTWARE.
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/NOTICE
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/NOTICE?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/NOTICE (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/NOTICE Mon Oct 6 01:54:16 2008
@@ -0,0 +1,30 @@
+Apache Felix Main
+Copyright 2008 The Apache Software Foundation
+
+
+I. Included Software
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+Licensed under the Apache License 2.0.
+
+This product includes software developed at
+The OSGi Alliance (http://www.osgi.org/).
+Copyright 2006 The OSGi Alliance.
+Licensed under the Apache License 2.0.
+
+This product includes software from http://kxml.sourceforge.net.
+Copyright (c) 2002,2003, Stefan Haustein, Oberhausen, Rhld., Germany.
+Licensed under BSD License.
+
+II. Used Software
+
+This product uses software developed at
+The OSGi Alliance (http://www.osgi.org/).
+Copyright 2006 The OSGi Alliance.
+Licensed under the Apache License 2.0.
+
+
+III. License Summary
+- Apache License 2.0
+- BSD License
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bin/felix.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bin/felix.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.
Propchange: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bin/felix.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bundle/org.apache.felix.bundlerepository-1.0.3.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bundle/org.apache.felix.bundlerepository-1.0.3.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.
Propchange: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bundle/org.apache.felix.bundlerepository-1.0.3.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bundle/org.apache.felix.shell-1.0.1.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bundle/org.apache.felix.shell-1.0.1.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.
Propchange: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bundle/org.apache.felix.shell-1.0.1.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bundle/org.apache.felix.shell.tui-1.0.1.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bundle/org.apache.felix.shell.tui-1.0.1.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.
Propchange: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/bundle/org.apache.felix.shell.tui-1.0.1.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/conf/config.properties
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/conf/config.properties?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/conf/config.properties (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/conf/config.properties Mon Oct 6 01:54:16 2008
@@ -0,0 +1,480 @@
+# 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.
+
+#
+# Framework config properties.
+#
+org.osgi.framework.system.packages=org.osgi.framework; version=1.3.0, \
+ org.osgi.service.packageadmin; version=1.2.0, \
+ org.osgi.service.startlevel; version=1.0.0, \
+ org.osgi.service.url; version=1.0.0, \
+ org.osgi.util.tracker; version=1.3.2 \
+ ${jre-${java.specification.version}}
+
+#org.osgi.framework.bootdelegation=sun.*,com.sun.*
+#felix.cache.profile=foo
+felix.cache.dir=cache
+felix.auto.start.1= \
+ file:bundle/org.apache.felix.shell-1.0.1.jar \
+ file:bundle/org.apache.felix.shell.tui-1.0.1.jar \
+ file:bundle/org.apache.felix.bundlerepository-1.0.3.jar \
+ file:ipojo/org.apache.felix.ipojo-0.8.0-SNAPSHOT.jar \
+ file:ipojo/org.apache.felix.ipojo.arch-0.8.0-SNAPSHOT.jar \
+ file:ipojo/org.apache.felix.configadmin-1.0.1.jar
+felix.log.level=4
+felix.startlevel.framework=1
+felix.startlevel.bundle=1
+#felix.service.urlhandlers=false
+
+#
+# Bundle config properties.
+#
+org.osgi.service.http.port=8080
+osgi.shell.telnet=on
+#obr.repository.url=http://bundles.osgi.org/obr/browse?_xml=1&cmd=repository
+
+
+#
+# Java platform package export properties.
+#
+jre-1.3=, \
+ javax.accessibility; \
+ javax.naming; \
+ javax.naming.directory; \
+ javax.naming.event; \
+ javax.naming.ldap; \
+ javax.naming.spi; \
+ javax.rmi; \
+ javax.rmi.CORBA; \
+ javax.sound.midi; \
+ javax.sound.midi.spi; \
+ javax.sound.sampled; \
+ javax.sound.sampled.spi; \
+ javax.swing; \
+ javax.swing.border; \
+ javax.swing.colorchooser; \
+ javax.swing.event; \
+ javax.swing.filechooser; \
+ javax.swing.plaf; \
+ javax.swing.plaf.basic; \
+ javax.swing.plaf.metal; \
+ javax.swing.plaf.multi; \
+ javax.swing.table; \
+ javax.swing.text; \
+ javax.swing.text.html; \
+ javax.swing.text.html.parser; \
+ javax.swing.text.rtf; \
+ javax.swing.tree; \
+ javax.swing.undo; \
+ javax.transaction; \
+ org.omg.CORBA; \
+ org.omg.CORBA_2_3; \
+ org.omg.CORBA_2_3.portable; \
+ org.omg.CORBA.DynAnyPackage; \
+ org.omg.CORBA.ORBPackage; \
+ org.omg.CORBA.portable; \
+ org.omg.CORBA.TypeCodePackage; \
+ org.omg.CosNaming; \
+ org.omg.CosNaming.NamingContextPackage; \
+ org.omg.SendingContext; \
+ org.omg.stub.java.rmi; \
+ version="1.3.0"
+
+jre-1.4=, \
+ javax.accessibility; \
+ javax.crypto; \
+ javax.crypto.interfaces; \
+ javax.crypto.spec; \
+ javax.imageio; \
+ javax.imageio.event; \
+ javax.imageio.metadata; \
+ javax.imageio.plugins.jpeg; \
+ javax.imageio.spi; \
+ javax.imageio.stream; \
+ javax.naming; \
+ javax.naming.directory; \
+ javax.naming.event; \
+ javax.naming.ldap; \
+ javax.naming.spi; \
+ javax.net; \
+ javax.net.ssl; \
+ javax.print; \
+ javax.print.attribute; \
+ javax.print.attribute.standard; \
+ javax.print.event; \
+ javax.rmi; \
+ javax.rmi.CORBA; \
+ javax.security.auth; \
+ javax.security.auth.callback; \
+ javax.security.auth.kerberos; \
+ javax.security.auth.login; \
+ javax.security.auth.spi; \
+ javax.security.auth.x500; \
+ javax.sound.midi; \
+ javax.sound.midi.spi; \
+ javax.sound.sampled; \
+ javax.sound.sampled.spi; \
+ javax.sql; \
+ javax.swing; \
+ javax.swing.border; \
+ javax.swing.colorchooser; \
+ javax.swing.event; \
+ javax.swing.filechooser; \
+ javax.swing.plaf; \
+ javax.swing.plaf.basic; \
+ javax.swing.plaf.metal; \
+ javax.swing.plaf.multi; \
+ javax.swing.table; \
+ javax.swing.text; \
+ javax.swing.text.html; \
+ javax.swing.text.html.parser; \
+ javax.swing.text.rtf; \
+ javax.swing.tree; \
+ javax.swing.undo; \
+ javax.transaction; \
+ javax.transaction.xa; \
+ javax.xml.parsers; \
+ javax.xml.transform; \
+ javax.xml.transform.dom; \
+ javax.xml.transform.sax; \
+ javax.xml.transform.stream; \
+ org.ietf.jgss; \
+ org.omg.CORBA; \
+ org.omg.CORBA_2_3; \
+ org.omg.CORBA_2_3.portable; \
+ org.omg.CORBA.DynAnyPackage; \
+ org.omg.CORBA.ORBPackage; \
+ org.omg.CORBA.portable; \
+ org.omg.CORBA.TypeCodePackage; \
+ org.omg.CosNaming; \
+ org.omg.CosNaming.NamingContextExtPackage; \
+ org.omg.CosNaming.NamingContextPackage; \
+ org.omg.Dynamic; \
+ org.omg.DynamicAny; \
+ org.omg.DynamicAny.DynAnyFactoryPackage; \
+ org.omg.DynamicAny.DynAnyPackage; \
+ org.omg.IOP; \
+ org.omg.IOP.CodecFactoryPackage; \
+ org.omg.IOP.CodecPackage; \
+ org.omg.Messaging; \
+ org.omg.PortableInterceptor; \
+ org.omg.PortableInterceptor.ORBInitInfoPackage; \
+ org.omg.PortableServer; \
+ org.omg.PortableServer.CurrentPackage; \
+ org.omg.PortableServer.POAManagerPackage; \
+ org.omg.PortableServer.POAPackage; \
+ org.omg.PortableServer.portable; \
+ org.omg.PortableServer.ServantLocatorPackage; \
+ org.omg.SendingContext; \
+ org.omg.stub.java.rmi; \
+ org.w3c.dom; \
+ org.w3c.dom.css; \
+ org.w3c.dom.events; \
+ org.w3c.dom.html; \
+ org.w3c.dom.stylesheets; \
+ org.w3c.dom.traversal; \
+ org.w3c.dom.views; \
+ org.xml.sax; \
+ org.xml.sax.ext; \
+ org.xml.sax.helpers; \
+ version="1.4.0"
+
+jre-1.5=, \
+ javax.accessibility; \
+ javax.activity; \
+ javax.crypto; \
+ javax.crypto.interfaces; \
+ javax.crypto.spec; \
+ javax.imageio; \
+ javax.imageio.event; \
+ javax.imageio.metadata; \
+ javax.imageio.plugins.bmp; \
+ javax.imageio.plugins.jpeg; \
+ javax.imageio.spi; \
+ javax.imageio.stream; \
+ javax.management; \
+ javax.management.loading; \
+ javax.management.modelmbean; \
+ javax.management.monitor; \
+ javax.management.openmbean; \
+ javax.management.relation; \
+ javax.management.remote; \
+ javax.management.remote.rmi; \
+ javax.management.timer; \
+ javax.naming; \
+ javax.naming.directory; \
+ javax.naming.event; \
+ javax.naming.ldap; \
+ javax.naming.spi; \
+ javax.net; \
+ javax.net.ssl; \
+ javax.print; \
+ javax.print.attribute; \
+ javax.print.attribute.standard; \
+ javax.print.event; \
+ javax.rmi; \
+ javax.rmi.CORBA; \
+ javax.rmi.ssl; \
+ javax.security.auth; \
+ javax.security.auth.callback; \
+ javax.security.auth.kerberos; \
+ javax.security.auth.login; \
+ javax.security.auth.spi; \
+ javax.security.auth.x500; \
+ javax.security.sasl; \
+ javax.sound.midi; \
+ javax.sound.midi.spi; \
+ javax.sound.sampled; \
+ javax.sound.sampled.spi; \
+ javax.sql; \
+ javax.sql.rowset; \
+ javax.sql.rowset.serial; \
+ javax.sql.rowset.spi; \
+ javax.swing; \
+ javax.swing.border; \
+ javax.swing.colorchooser; \
+ javax.swing.event; \
+ javax.swing.filechooser; \
+ javax.swing.plaf; \
+ javax.swing.plaf.basic; \
+ javax.swing.plaf.metal; \
+ javax.swing.plaf.multi; \
+ javax.swing.plaf.synth; \
+ javax.swing.table; \
+ javax.swing.text; \
+ javax.swing.text.html; \
+ javax.swing.text.html.parser; \
+ javax.swing.text.rtf; \
+ javax.swing.tree; \
+ javax.swing.undo; \
+ javax.transaction; \
+ javax.transaction.xa; \
+ javax.xml; \
+ javax.xml.datatype; \
+ javax.xml.namespace; \
+ javax.xml.parsers; \
+ javax.xml.transform; \
+ javax.xml.transform.dom; \
+ javax.xml.transform.sax; \
+ javax.xml.transform.stream; \
+ javax.xml.validation; \
+ javax.xml.xpath; \
+ org.ietf.jgss; \
+ org.omg.CORBA; \
+ org.omg.CORBA_2_3; \
+ org.omg.CORBA_2_3.portable; \
+ org.omg.CORBA.DynAnyPackage; \
+ org.omg.CORBA.ORBPackage; \
+ org.omg.CORBA.portable; \
+ org.omg.CORBA.TypeCodePackage; \
+ org.omg.CosNaming; \
+ org.omg.CosNaming.NamingContextExtPackage; \
+ org.omg.CosNaming.NamingContextPackage; \
+ org.omg.Dynamic; \
+ org.omg.DynamicAny; \
+ org.omg.DynamicAny.DynAnyFactoryPackage; \
+ org.omg.DynamicAny.DynAnyPackage; \
+ org.omg.IOP; \
+ org.omg.IOP.CodecFactoryPackage; \
+ org.omg.IOP.CodecPackage; \
+ org.omg.Messaging; \
+ org.omg.PortableInterceptor; \
+ org.omg.PortableInterceptor.ORBInitInfoPackage; \
+ org.omg.PortableServer; \
+ org.omg.PortableServer.CurrentPackage; \
+ org.omg.PortableServer.POAManagerPackage; \
+ org.omg.PortableServer.POAPackage; \
+ org.omg.PortableServer.portable; \
+ org.omg.PortableServer.ServantLocatorPackage; \
+ org.omg.SendingContext; \
+ org.omg.stub.java.rmi; \
+ org.omg.stub.javax.management.remote.rmi; \
+ org.w3c.dom; \
+ org.w3c.dom.bootstrap; \
+ org.w3c.dom.css; \
+ org.w3c.dom.events; \
+ org.w3c.dom.html; \
+ org.w3c.dom.ls; \
+ org.w3c.dom.ranges; \
+ org.w3c.dom.stylesheets; \
+ org.w3c.dom.traversal; \
+ org.w3c.dom.views; \
+ org.xml.sax; \
+ org.xml.sax.ext; \
+ org.xml.sax.helpers; \
+ version="1.5.0"
+
+jre-1.6=, \
+ javax.accessibility; \
+ javax.activation; \
+ javax.activity; \
+ javax.annotation; \
+ javax.annotation.processing; \
+ javax.crypto; \
+ javax.crypto.interfaces; \
+ javax.crypto.spec; \
+ javax.imageio; \
+ javax.imageio.event; \
+ javax.imageio.metadata; \
+ javax.imageio.plugins.bmp; \
+ javax.imageio.plugins.jpeg; \
+ javax.imageio.spi; \
+ javax.imageio.stream; \
+ javax.jws; \
+ javax.jws.soap; \
+ javax.lang.model; \
+ javax.lang.model.element; \
+ javax.lang.model.type; \
+ javax.lang.model.util; \
+ javax.management; \
+ javax.management.loading; \
+ javax.management.modelmbean; \
+ javax.management.monitor; \
+ javax.management.openmbean; \
+ javax.management.relation; \
+ javax.management.remote; \
+ javax.management.remote.rmi; \
+ javax.management.timer; \
+ javax.naming; \
+ javax.naming.directory; \
+ javax.naming.event; \
+ javax.naming.ldap; \
+ javax.naming.spi; \
+ javax.net; \
+ javax.net.ssl; \
+ javax.print; \
+ javax.print.attribute; \
+ javax.print.attribute.standard; \
+ javax.print.event; \
+ javax.rmi; \
+ javax.rmi.CORBA; \
+ javax.rmi.ssl; \
+ javax.script; \
+ javax.security.auth; \
+ javax.security.auth.callback; \
+ javax.security.auth.kerberos; \
+ javax.security.auth.login; \
+ javax.security.auth.spi; \
+ javax.security.auth.x500; \
+ javax.security.cert; \
+ javax.security.sasl; \
+ javax.sound.midi; \
+ javax.sound.midi.spi; \
+ javax.sound.sampled; \
+ javax.sound.sampled.spi; \
+ javax.sql; \
+ javax.sql.rowset; \
+ javax.sql.rowset.serial; \
+ javax.sql.rowset.spi; \
+ javax.swing; \
+ javax.swing.border; \
+ javax.swing.colorchooser; \
+ javax.swing.event; \
+ javax.swing.filechooser; \
+ javax.swing.plaf; \
+ javax.swing.plaf.basic; \
+ javax.swing.plaf.metal; \
+ javax.swing.plaf.multi; \
+ javax.swing.plaf.synth; \
+ javax.swing.table; \
+ javax.swing.text; \
+ javax.swing.text.html; \
+ javax.swing.text.html.parser; \
+ javax.swing.text.rtf; \
+ javax.swing.tree; \
+ javax.swing.undo; \
+ javax.tools; \
+ javax.transaction; \
+ javax.transaction.xa; \
+ javax.xml; \
+ javax.xml.bind; \
+ javax.xml.bind.annotation; \
+ javax.xml.bind.annotation.adapters; \
+ javax.xml.bind.attachment; \
+ javax.xml.bind.helpers; \
+ javax.xml.bind.util; \
+ javax.xml.crypto; \
+ javax.xml.crypto.dom; \
+ javax.xml.crypto.dsig; \
+ javax.xml.crypto.dsig.dom; \
+ javax.xml.crypto.dsig.keyinfo; \
+ javax.xml.crypto.dsig.spec; \
+ javax.xml.datatype; \
+ javax.xml.namespace; \
+ javax.xml.parsers; \
+ javax.xml.soap; \
+ javax.xml.stream; \
+ javax.xml.stream.events; \
+ javax.xml.stream.util; \
+ javax.xml.transform; \
+ javax.xml.transform.dom; \
+ javax.xml.transform.sax; \
+ javax.xml.transform.stax; \
+ javax.xml.transform.stream; \
+ javax.xml.validation; \
+ javax.xml.ws; \
+ javax.xml.ws.handler; \
+ javax.xml.ws.handler.soap; \
+ javax.xml.ws.http; \
+ javax.xml.ws.soap; \
+ javax.xml.ws.spi; \
+ javax.xml.xpath; \
+ org.ietf.jgss; \
+ org.omg.CORBA; \
+ org.omg.CORBA_2_3; \
+ org.omg.CORBA_2_3.portable; \
+ org.omg.CORBA.DynAnyPackage; \
+ org.omg.CORBA.ORBPackage; \
+ org.omg.CORBA.portable; \
+ org.omg.CORBA.TypeCodePackage; \
+ org.omg.CosNaming; \
+ org.omg.CosNaming.NamingContextExtPackage; \
+ org.omg.CosNaming.NamingContextPackage; \
+ org.omg.Dynamic; \
+ org.omg.DynamicAny; \
+ org.omg.DynamicAny.DynAnyFactoryPackage; \
+ org.omg.DynamicAny.DynAnyPackage; \
+ org.omg.IOP; \
+ org.omg.IOP.CodecFactoryPackage; \
+ org.omg.IOP.CodecPackage; \
+ org.omg.Messaging; \
+ org.omg.PortableInterceptor; \
+ org.omg.PortableInterceptor.ORBInitInfoPackage; \
+ org.omg.PortableServer; \
+ org.omg.PortableServer.CurrentPackage; \
+ org.omg.PortableServer.POAManagerPackage; \
+ org.omg.PortableServer.POAPackage; \
+ org.omg.PortableServer.portable; \
+ org.omg.PortableServer.ServantLocatorPackage; \
+ org.omg.SendingContext; \
+ org.omg.stub.java.rmi; \
+ org.omg.stub.javax.management.remote.rmi; \
+ org.w3c.dom; \
+ org.w3c.dom.bootstrap; \
+ org.w3c.dom.css; \
+ org.w3c.dom.events; \
+ org.w3c.dom.html; \
+ org.w3c.dom.ls; \
+ org.w3c.dom.ranges; \
+ org.w3c.dom.stylesheets; \
+ org.w3c.dom.traversal; \
+ org.w3c.dom.views; \
+ org.w3c.dom.xpath; \
+ org.xml.sax; \
+ org.xml.sax.ext; \
+ org.xml.sax.helpers; \
+ version=\"1.6.0\"
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/ipojo/org.apache.felix.configadmin-1.0.1.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/ipojo/org.apache.felix.configadmin-1.0.1.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.
Propchange: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/ipojo/org.apache.felix.configadmin-1.0.1.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/ipojo/org.apache.felix.ipojo-0.8.0-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/ipojo/org.apache.felix.ipojo-0.8.0-SNAPSHOT.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.
Propchange: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/ipojo/org.apache.felix.ipojo-0.8.0-SNAPSHOT.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/ipojo/org.apache.felix.ipojo.arch-0.8.0-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/ipojo/org.apache.felix.ipojo.arch-0.8.0-SNAPSHOT.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.
Propchange: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/ipojo/org.apache.felix.ipojo.arch-0.8.0-SNAPSHOT.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/script.txt
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/script.txt?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/script.txt (added)
+++ felix/sandbox/clement/ipojo-tutorials/config.admin.tutorial/felix/script.txt Mon Oct 6 01:54:16 2008
@@ -0,0 +1,9 @@
+start file:../vendor.services/output/vendor.services.jar
+start file:../vendor.buns-and-wieners/output/vendor.buns-and-wieners.jar
+start file:../vendor.hotdog/output/vendor.hotdog.jar
+start file:../vendor.customer/output/vendor.customer.jar
+start file:../vendor.customer.creator/output/vendor.customer.creator.jar
+
+start file:../vendor.popcorn/output/vendor.popcorn.jar
+update 10
+start file:../vendor.corn.transporter/output/vendor.corn.transporter.jar
\ No newline at end of file
Propchange: felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Oct 6 01:54:16 2008
@@ -0,0 +1,5 @@
+.classpath
+.externalToolBuilders
+.project
+.settings
+target
Added: felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/Junit-Example.bnd
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/Junit-Example.bnd?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/Junit-Example.bnd (added)
+++ felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/Junit-Example.bnd Mon Oct 6 01:54:16 2008
@@ -0,0 +1,2 @@
+Private-Package: junit.money, junit.example
+Test-Suite: junit.example.SimpleTestSuite
\ No newline at end of file
Added: felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/build.xml
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/build.xml?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/build.xml (added)
+++ felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/build.xml Mon Oct 6 01:54:16 2008
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+
+<project name="Junit-Example" default="package" basedir=".">
+
+ <property name="src.dir" value="src"/>
+ <property name="lib.dir" value="libs"/>
+ <property name="build.dir" value="output/classes"/>
+ <property name="output.dir" value="output"/>
+
+ <taskdef resource="aQute/bnd/ant/taskdef.properties"
+ classpath="task/bnd-0.0.223.jar"/>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ <delete dir="${output.dir}"/>
+ </target>
+
+ <target name="compile">
+ <mkdir dir="${output.dir}"/>
+ <mkdir dir="${build.dir}"/>
+
+ <javac srcdir="${src.dir}"
+ destdir="${build.dir}"
+ debug="on"
+ classpath="lib/org.apache.felix.ipojo.junit4osgi-0.8.0-SNAPSHOT.jar"
+ />
+ </target>
+
+ <target name="package" depends="compile">
+ <bnd
+ classpath="${build.dir}"
+ failok="false"
+ exceptions="true"
+ files="${ant.project.name}.bnd"
+ output="${output.dir}"/>
+ </target>
+
+</project>
Added: felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/lib/org.apache.felix.ipojo.junit4osgi-0.8.0-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/lib/org.apache.felix.ipojo.junit4osgi-0.8.0-SNAPSHOT.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.
Propchange: felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/lib/org.apache.felix.ipojo.junit4osgi-0.8.0-SNAPSHOT.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/example/SimpleTestCase.java
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/example/SimpleTestCase.java?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/example/SimpleTestCase.java (added)
+++ felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/example/SimpleTestCase.java Mon Oct 6 01:54:16 2008
@@ -0,0 +1,30 @@
+package junit.example;
+
+import junit.framework.TestCase;
+import junit.money.Money;
+
+public class SimpleTestCase extends TestCase {
+
+ private Money f12CHF;
+ private Money f14CHF;
+
+ public void setUp() {
+ f12CHF= new Money(12, "CHF");
+ f14CHF= new Money(14, "CHF");
+ }
+
+ public void testEquals() {
+ assertTrue(!f12CHF.equals(null));
+ assertEquals(f12CHF, f12CHF);
+ assertEquals(f12CHF, new Money(12, "CHF"));
+ assertTrue(!f12CHF.equals(f14CHF));
+ }
+
+ public void testSimpleAdd() {
+ Money expected= new Money(26, "CHF");
+ Money result= f12CHF.add(f14CHF);
+ assertTrue(expected.equals(result));
+ }
+
+}
+
Added: felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/example/SimpleTestSuite.java
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/example/SimpleTestSuite.java?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/example/SimpleTestSuite.java (added)
+++ felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/example/SimpleTestSuite.java Mon Oct 6 01:54:16 2008
@@ -0,0 +1,14 @@
+package junit.example;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class SimpleTestSuite {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Money Simple Test Suite");
+ suite.addTestSuite(SimpleTestCase.class);
+ return suite;
+ }
+
+}
Added: felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/money/Money.java
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/money/Money.java?rev=702020&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/money/Money.java (added)
+++ felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/src/junit/money/Money.java Mon Oct 6 01:54:16 2008
@@ -0,0 +1,32 @@
+package junit.money;
+
+public class Money {
+ private int fAmount;
+ private String fCurrency;
+
+ public Money(int amount, String currency) {
+ fAmount= amount;
+ fCurrency= currency;
+ }
+
+ public int amount() {
+ return fAmount;
+ }
+
+ public String currency() {
+ return fCurrency;
+ }
+
+ public Money add(Money m) {
+ return new Money(amount()+m.amount(), currency());
+ }
+
+ public boolean equals(Object anObject) {
+ if (anObject instanceof Money) {
+ Money aMoney= (Money)anObject;
+ return aMoney.currency().equals(currency())
+ && amount() == aMoney.amount();
+ }
+ return false;
+ }
+}
Added: felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/task/bnd-0.0.223.jar
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/junit4osgi.tutorial/Junit-Example/task/bnd-0.0.223.jar?rev=702020&view=auto
==============================================================================
Binary file - no diff available.