Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'test-apps/manual-context/src/main/java/eg')
-rw-r--r--test-apps/manual-context/src/main/java/eg/Activator.java28
-rw-r--r--test-apps/manual-context/src/main/java/eg/context.xml7
2 files changed, 35 insertions, 0 deletions
diff --git a/test-apps/manual-context/src/main/java/eg/Activator.java b/test-apps/manual-context/src/main/java/eg/Activator.java
new file mode 100644
index 00000000..80a5ec0d
--- /dev/null
+++ b/test-apps/manual-context/src/main/java/eg/Activator.java
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * 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 eg;
+
+import org.osgi.framework.*;
+import org.springframework.context.support.*;
+
+public class Activator implements BundleActivator {
+
+ public void start(BundleContext ctx) throws BundleException {
+ System.out.println("Starting with TCCL: " + Thread.currentThread().getContextClassLoader());
+ ClassPathXmlApplicationContext c = new ClassPathXmlApplicationContext("context.xml", getClass());
+ c.refresh();
+ }
+
+ public void stop(BundleContext ctx) throws BundleException {
+
+ }
+}
diff --git a/test-apps/manual-context/src/main/java/eg/context.xml b/test-apps/manual-context/src/main/java/eg/context.xml
new file mode 100644
index 00000000..c872253c
--- /dev/null
+++ b/test-apps/manual-context/src/main/java/eg/context.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+
+</beans>

Back to the top