Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'test-apps/refresh/refresh')
-rw-r--r--test-apps/refresh/refresh/build-par/build.xml37
-rw-r--r--test-apps/refresh/refresh/build.properties6
-rw-r--r--test-apps/refresh/refresh/exporter/build.xml9
-rw-r--r--test-apps/refresh/refresh/exporter/ivy.xml21
-rw-r--r--test-apps/refresh/refresh/exporter/src/main/java/refresh/exporter/b1/B11.java17
-rw-r--r--test-apps/refresh/refresh/exporter/src/main/resources/META-INF/MANIFEST.MF8
-rw-r--r--test-apps/refresh/refresh/exporter2/build.xml9
-rw-r--r--test-apps/refresh/refresh/exporter2/ivy.xml21
-rw-r--r--test-apps/refresh/refresh/exporter2/src/main/java/exporter/b1/B11.java17
-rw-r--r--test-apps/refresh/refresh/exporter2/src/main/java/exporter/b1/B12.java17
-rw-r--r--test-apps/refresh/refresh/exporter2/src/main/resources/META-INF/MANIFEST.MF8
-rw-r--r--test-apps/refresh/refresh/exporter3/build.xml9
-rw-r--r--test-apps/refresh/refresh/exporter3/ivy.xml21
-rw-r--r--test-apps/refresh/refresh/exporter3/src/main/java/exporter/b1/B11.java17
-rw-r--r--test-apps/refresh/refresh/exporter3/src/main/java/exporter/b1/B12.java17
-rw-r--r--test-apps/refresh/refresh/exporter3/src/main/java/exporter/b2/B21.java17
-rw-r--r--test-apps/refresh/refresh/exporter3/src/main/resources/META-INF/MANIFEST.MF8
-rw-r--r--test-apps/refresh/refresh/importer/build.xml9
-rw-r--r--test-apps/refresh/refresh/importer/ivy.xml25
-rw-r--r--test-apps/refresh/refresh/importer/src/main/java/org/eclipse/virgo/kernel/deployer/test/LoadableClasses.java20
-rw-r--r--test-apps/refresh/refresh/importer/src/main/java/refresh/importer/Importer.java53
-rw-r--r--test-apps/refresh/refresh/importer/src/main/resources/META-INF/MANIFEST.MF12
-rw-r--r--test-apps/refresh/refresh/importer/src/main/resources/META-INF/spring/importer-context.xml20
23 files changed, 398 insertions, 0 deletions
diff --git a/test-apps/refresh/refresh/build-par/build.xml b/test-apps/refresh/refresh/build-par/build.xml
new file mode 100644
index 00000000..82160100
--- /dev/null
+++ b/test-apps/refresh/refresh/build-par/build.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="RefreshTest">
+
+ <import file="${basedir}/../../../../virgo-build/multi-bundle/default.xml"/>
+
+ <path id="bundles">
+ <pathelement location="../exporter"/>
+ <pathelement location="../exporter2"/>
+ <pathelement location="../exporter3"/>
+ <pathelement location="../importer"/>
+ </path>
+
+ <property name="par.expanded.dir" value="${basedir}/target/par-expanded"/>
+
+ <target name="jar">
+ <all-bundles target="jar"/>
+
+ <mkdir dir="${par.expanded.dir}/build"/>
+ <copy todir="${par.expanded.dir}" file="../importer/target/artifacts/RefreshImporter.jar"/>
+ <copy todir="${par.expanded.dir}" file="../exporter/target/artifacts/RefreshExporter.jar"/>
+ <copy todir="${par.expanded.dir}/build" file="../exporter2/target/artifacts/RefreshExporterv2.jar"/>
+ <copy todir="${par.expanded.dir}/build" file="../exporter3/target/artifacts/RefreshExporterv3.jar"/>
+
+ <mkdir dir="${basedir}/target/artifacts"/>
+ <jar destfile="${basedir}/target/artifacts/refresh.par">
+ <fileset dir="${par.expanded.dir}" includes="**/*"/>
+ <manifest>
+ <attribute name="Application-Version" value="1.0"/>
+ <attribute name="Application-SymbolicName" value="${ant.project.name}"/>
+ </manifest>
+ </jar>
+
+ <copy todir="${basedir}/../../../../org.eclipse.virgo.kernel.deployer.test/src/test/resources" file="target/artifacts/refresh.par"/>
+
+ </target>
+
+</project>
diff --git a/test-apps/refresh/refresh/build.properties b/test-apps/refresh/refresh/build.properties
new file mode 100644
index 00000000..10f7f235
--- /dev/null
+++ b/test-apps/refresh/refresh/build.properties
@@ -0,0 +1,6 @@
+version=1.0.0
+release.type=integration
+bucket.basename=springsource.com
+ivy.cache.dir=${basedir}/../../../ivy-cache
+integration.repo.dir=${basedir}/../../../../integration-repo
+disable.bundlor=true
diff --git a/test-apps/refresh/refresh/exporter/build.xml b/test-apps/refresh/refresh/exporter/build.xml
new file mode 100644
index 00000000..646d895e
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter/build.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="RefreshExporter">
+
+ <property file="${basedir}/../build.properties"/>
+ <property file="${basedir}/../../../build.versions"/>
+
+ <import file="${basedir}/../../../../virgo-build/standard/default.xml"/>
+
+</project>
diff --git a/test-apps/refresh/refresh/exporter/ivy.xml b/test-apps/refresh/refresh/exporter/ivy.xml
new file mode 100644
index 00000000..7fc2d939
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter/ivy.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="http://ivyrep.jayasoft.org/ivy-doc.xsl"?>
+<ivy-module
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://incubator.apache.org/ivy/schemas/ivy.xsd"
+ version="1.3">
+
+ <info organisation="refresh" module="${ant.project.name}">
+ <ivyauthor name="robharrop"/>
+ </info>
+
+ <configurations>
+ <include file="${virgo.build.dir}/common/default-ivy-configurations.xml"/>
+ </configurations>
+
+ <publications>
+ </publications>
+
+ <dependencies/>
+
+</ivy-module>
diff --git a/test-apps/refresh/refresh/exporter/src/main/java/refresh/exporter/b1/B11.java b/test-apps/refresh/refresh/exporter/src/main/java/refresh/exporter/b1/B11.java
new file mode 100644
index 00000000..f88b07a7
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter/src/main/java/refresh/exporter/b1/B11.java
@@ -0,0 +1,17 @@
+/*******************************************************************************
+ * Copyright (c) 2008, 2010 VMware Inc.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VMware Inc. - initial contribution
+ *******************************************************************************/
+
+package refresh.exporter.b1;
+
+
+public class B11 {
+
+}
diff --git a/test-apps/refresh/refresh/exporter/src/main/resources/META-INF/MANIFEST.MF b/test-apps/refresh/refresh/exporter/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..0c5f9e73
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,8 @@
+Manifest-Version: 1.0
+Bundle-Name: RefreshExporter
+Created-By: 1.5.0_13 (Apple Computer, Inc.)
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: RefreshExporter
+Export-Package: refresh.exporter.b1
+Bundle-Version: 1
+
diff --git a/test-apps/refresh/refresh/exporter2/build.xml b/test-apps/refresh/refresh/exporter2/build.xml
new file mode 100644
index 00000000..e03189bf
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter2/build.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="RefreshExporterv2">
+
+ <property file="${basedir}/../build.properties"/>
+ <property file="${basedir}/../../../build.versions"/>
+
+ <import file="${basedir}/../../../../virgo-build/standard/default.xml"/>
+
+</project>
diff --git a/test-apps/refresh/refresh/exporter2/ivy.xml b/test-apps/refresh/refresh/exporter2/ivy.xml
new file mode 100644
index 00000000..7fc2d939
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter2/ivy.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="http://ivyrep.jayasoft.org/ivy-doc.xsl"?>
+<ivy-module
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://incubator.apache.org/ivy/schemas/ivy.xsd"
+ version="1.3">
+
+ <info organisation="refresh" module="${ant.project.name}">
+ <ivyauthor name="robharrop"/>
+ </info>
+
+ <configurations>
+ <include file="${virgo.build.dir}/common/default-ivy-configurations.xml"/>
+ </configurations>
+
+ <publications>
+ </publications>
+
+ <dependencies/>
+
+</ivy-module>
diff --git a/test-apps/refresh/refresh/exporter2/src/main/java/exporter/b1/B11.java b/test-apps/refresh/refresh/exporter2/src/main/java/exporter/b1/B11.java
new file mode 100644
index 00000000..f88b07a7
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter2/src/main/java/exporter/b1/B11.java
@@ -0,0 +1,17 @@
+/*******************************************************************************
+ * Copyright (c) 2008, 2010 VMware Inc.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VMware Inc. - initial contribution
+ *******************************************************************************/
+
+package refresh.exporter.b1;
+
+
+public class B11 {
+
+}
diff --git a/test-apps/refresh/refresh/exporter2/src/main/java/exporter/b1/B12.java b/test-apps/refresh/refresh/exporter2/src/main/java/exporter/b1/B12.java
new file mode 100644
index 00000000..ac067161
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter2/src/main/java/exporter/b1/B12.java
@@ -0,0 +1,17 @@
+/*******************************************************************************
+ * Copyright (c) 2008, 2010 VMware Inc.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VMware Inc. - initial contribution
+ *******************************************************************************/
+
+package refresh.exporter.b1;
+
+
+public class B12 {
+
+}
diff --git a/test-apps/refresh/refresh/exporter2/src/main/resources/META-INF/MANIFEST.MF b/test-apps/refresh/refresh/exporter2/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..1348e130
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter2/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,8 @@
+Manifest-Version: 1.0
+Bundle-Name: RefreshExporter
+Created-By: 1.5.0_13 (Apple Computer, Inc.)
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: RefreshExporter
+Export-Package: refresh.exporter.b1
+Bundle-Version: 2
+
diff --git a/test-apps/refresh/refresh/exporter3/build.xml b/test-apps/refresh/refresh/exporter3/build.xml
new file mode 100644
index 00000000..54b2b456
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter3/build.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="RefreshExporterv3">
+
+ <property file="${basedir}/../build.properties"/>
+ <property file="${basedir}/../../../build.versions"/>
+
+ <import file="${basedir}/../../../../virgo-build/standard/default.xml"/>
+
+</project>
diff --git a/test-apps/refresh/refresh/exporter3/ivy.xml b/test-apps/refresh/refresh/exporter3/ivy.xml
new file mode 100644
index 00000000..7fc2d939
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter3/ivy.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="http://ivyrep.jayasoft.org/ivy-doc.xsl"?>
+<ivy-module
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://incubator.apache.org/ivy/schemas/ivy.xsd"
+ version="1.3">
+
+ <info organisation="refresh" module="${ant.project.name}">
+ <ivyauthor name="robharrop"/>
+ </info>
+
+ <configurations>
+ <include file="${virgo.build.dir}/common/default-ivy-configurations.xml"/>
+ </configurations>
+
+ <publications>
+ </publications>
+
+ <dependencies/>
+
+</ivy-module>
diff --git a/test-apps/refresh/refresh/exporter3/src/main/java/exporter/b1/B11.java b/test-apps/refresh/refresh/exporter3/src/main/java/exporter/b1/B11.java
new file mode 100644
index 00000000..f88b07a7
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter3/src/main/java/exporter/b1/B11.java
@@ -0,0 +1,17 @@
+/*******************************************************************************
+ * Copyright (c) 2008, 2010 VMware Inc.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VMware Inc. - initial contribution
+ *******************************************************************************/
+
+package refresh.exporter.b1;
+
+
+public class B11 {
+
+}
diff --git a/test-apps/refresh/refresh/exporter3/src/main/java/exporter/b1/B12.java b/test-apps/refresh/refresh/exporter3/src/main/java/exporter/b1/B12.java
new file mode 100644
index 00000000..ac067161
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter3/src/main/java/exporter/b1/B12.java
@@ -0,0 +1,17 @@
+/*******************************************************************************
+ * Copyright (c) 2008, 2010 VMware Inc.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VMware Inc. - initial contribution
+ *******************************************************************************/
+
+package refresh.exporter.b1;
+
+
+public class B12 {
+
+}
diff --git a/test-apps/refresh/refresh/exporter3/src/main/java/exporter/b2/B21.java b/test-apps/refresh/refresh/exporter3/src/main/java/exporter/b2/B21.java
new file mode 100644
index 00000000..d5f9ed2e
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter3/src/main/java/exporter/b2/B21.java
@@ -0,0 +1,17 @@
+/*******************************************************************************
+ * Copyright (c) 2008, 2010 VMware Inc.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VMware Inc. - initial contribution
+ *******************************************************************************/
+
+package refresh.exporter.b2;
+
+
+public class B21 {
+
+}
diff --git a/test-apps/refresh/refresh/exporter3/src/main/resources/META-INF/MANIFEST.MF b/test-apps/refresh/refresh/exporter3/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..a1ebe063
--- /dev/null
+++ b/test-apps/refresh/refresh/exporter3/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,8 @@
+Manifest-Version: 1.0
+Bundle-Name: RefreshExporter
+Created-By: 1.5.0_13 (Apple Computer, Inc.)
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: RefreshExporter
+Export-Package: refresh.exporter.b1,refresh.exporter.b2
+Bundle-Version: 3
+
diff --git a/test-apps/refresh/refresh/importer/build.xml b/test-apps/refresh/refresh/importer/build.xml
new file mode 100644
index 00000000..cc1120b9
--- /dev/null
+++ b/test-apps/refresh/refresh/importer/build.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="RefreshImporter">
+
+ <property file="${basedir}/../build.properties"/>
+ <property file="${basedir}/../../../../build.versions"/>
+
+ <import file="${basedir}/../../../../virgo-build/standard/default.xml"/>
+
+</project>
diff --git a/test-apps/refresh/refresh/importer/ivy.xml b/test-apps/refresh/refresh/importer/ivy.xml
new file mode 100644
index 00000000..d3915115
--- /dev/null
+++ b/test-apps/refresh/refresh/importer/ivy.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="http://ivyrep.jayasoft.org/ivy-doc.xsl"?>
+<ivy-module
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://incubator.apache.org/ivy/schemas/ivy.xsd"
+ version="1.3">
+
+ <info organisation="refresh" module="${ant.project.name}">
+ <ivyauthor name="robharrop"/>
+ </info>
+
+ <configurations>
+ <include file="${virgo.build.dir}/common/default-ivy-configurations.xml"/>
+ </configurations>
+
+ <publications>
+ </publications>
+
+ <dependencies>
+ <dependency org="org.eclipse.osgi" name="org.eclipse.osgi" rev="${org.eclipse.osgi}" conf="provided->compile"/>
+ <dependency org="org.eclipse.virgo.kernel" name="org.eclipse.virgo.kernel.osgi" rev="latest.integration" conf="provided->compile"/>
+ <dependency org="org.eclipse.virgo.kernel" name="org.eclipse.virgo.kernel.deployer.test" rev="latest.integration" conf="provided->compile"/>
+ </dependencies>
+
+</ivy-module>
diff --git a/test-apps/refresh/refresh/importer/src/main/java/org/eclipse/virgo/kernel/deployer/test/LoadableClasses.java b/test-apps/refresh/refresh/importer/src/main/java/org/eclipse/virgo/kernel/deployer/test/LoadableClasses.java
new file mode 100644
index 00000000..e56913aa
--- /dev/null
+++ b/test-apps/refresh/refresh/importer/src/main/java/org/eclipse/virgo/kernel/deployer/test/LoadableClasses.java
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2008, 2010 VMware Inc.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VMware Inc. - initial contribution
+ *******************************************************************************/
+
+package org.eclipse.virgo.kernel.deployer.test;
+
+import java.util.Set;
+
+public interface LoadableClasses {
+
+ Set<String> getLoadableClasses();
+
+}
diff --git a/test-apps/refresh/refresh/importer/src/main/java/refresh/importer/Importer.java b/test-apps/refresh/refresh/importer/src/main/java/refresh/importer/Importer.java
new file mode 100644
index 00000000..f1ed4d20
--- /dev/null
+++ b/test-apps/refresh/refresh/importer/src/main/java/refresh/importer/Importer.java
@@ -0,0 +1,53 @@
+/*******************************************************************************
+ * Copyright (c) 2008, 2010 VMware Inc.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VMware Inc. - initial contribution
+ *******************************************************************************/
+
+package refresh.importer;
+
+import java.util.HashSet;
+import java.util.Set;
+
+import org.osgi.framework.Bundle;
+
+import org.eclipse.virgo.kernel.deployer.test.LoadableClasses;
+import org.eclipse.virgo.kernel.osgi.framework.OsgiFramework;
+
+public class Importer implements LoadableClasses {
+
+ private final Set<String> loadableClasses = new HashSet<String>();
+
+ public Importer(OsgiFramework osgi) {
+ System.out.println("New Importer bean");
+ checkLoadClass("refresh.exporter.b1.B11");
+ checkLoadClass("refresh.exporter.b1.B12");
+ checkLoadClass("refresh.exporter.b2.B21");
+ Bundle[] bundles = osgi.getBundleContext().getBundles();
+ for (Bundle bundle : bundles) {
+ if (bundle.getSymbolicName().equals("RefreshTest-1-RefreshExporter")) {
+ System.out.println(bundle.getHeaders().get("bundle-version"));
+ }
+ }
+ }
+
+ private void checkLoadClass(String className) {
+ try {
+ this.getClass().getClassLoader().loadClass(className);
+ System.out.println(className + " is loadable");
+ loadableClasses.add(className);
+ } catch (ClassNotFoundException e) {
+ System.out.println(className + " is not loadable");
+ }
+ }
+
+ public Set<String> getLoadableClasses() {
+ return this.loadableClasses;
+ }
+
+}
diff --git a/test-apps/refresh/refresh/importer/src/main/resources/META-INF/MANIFEST.MF b/test-apps/refresh/refresh/importer/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..0357d763
--- /dev/null
+++ b/test-apps/refresh/refresh/importer/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-Name: RefreshImporter
+Created-By: 1.5.0_13 (Apple Computer, Inc.)
+Import-Package: org.osgi.framework,
+ org.eclipse.virgo.kernel.osgi.framework,
+ org.eclipse.virgo.kernel.deployer.test,
+ refresh.exporter.b1,
+ refresh.exporter.b2;resolution:=optional
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: RefreshImporter
+Bundle-Version: 1.0.0
+
diff --git a/test-apps/refresh/refresh/importer/src/main/resources/META-INF/spring/importer-context.xml b/test-apps/refresh/refresh/importer/src/main/resources/META-INF/spring/importer-context.xml
new file mode 100644
index 00000000..df598c1f
--- /dev/null
+++ b/test-apps/refresh/refresh/importer/src/main/resources/META-INF/spring/importer-context.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans:beans xmlns="http://www.springframework.org/schema/osgi"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:beans="http://www.springframework.org/schema/beans"
+ xsi:schemaLocation="http://www.springframework.org/schema/osgi
+ http://www.springframework.org/schema/osgi/spring-osgi.xsd
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+
+ <reference id="osgiFramework"
+ interface="org.eclipse.virgo.kernel.osgi.framework.OsgiFramework" />
+
+ <beans:bean id="importer" class="refresh.importer.Importer">
+ <beans:constructor-arg ref="osgiFramework" />
+ </beans:bean>
+
+ <service ref="importer"
+ interface="org.eclipse.virgo.kernel.deployer.test.LoadableClasses" />
+
+</beans:beans>

Back to the top