You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by li...@apache.org on 2010/10/13 19:40:54 UTC
svn commit: r1022208 - in
/incubator/aries/trunk/subsystem/subsystem-example: ./
subsystem-helloIsolation/ subsystem-helloIsolation/src/
subsystem-helloIsolation/src/main/ subsystem-helloIsolation/src/main/java/
subsystem-helloIsolation/src/main/java/o...
Author: linsun
Date: Wed Oct 13 17:40:48 2010
New Revision: 1022208
URL: http://svn.apache.org/viewvc?rev=1022208&view=rev
Log:
ARIES-456 provide some test examples for the itests
Added:
incubator/aries/trunk/subsystem/subsystem-example/
incubator/aries/trunk/subsystem/subsystem-example/pom.xml (with props)
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/pom.xml (with props)
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/Activator.java (with props)
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolation.java (with props)
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolationImpl.java (with props)
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/pom.xml (with props)
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/Activator.java (with props)
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRef.java (with props)
incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRefImpl.java (with props)
Added: incubator/aries/trunk/subsystem/subsystem-example/pom.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-example/pom.xml?rev=1022208&view=auto
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-example/pom.xml (added)
+++ incubator/aries/trunk/subsystem/subsystem-example/pom.xml Wed Oct 13 17:40:48 2010
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <!--
+ Licensed to the Apache Software Foundation (ASF) under one or
+ more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information regarding
+ copyright ownership. The ASF licenses this file to you under the
+ Apache License, Version 2.0 (the "License"); you may not use
+ this file except in compliance with the License. You may obtain
+ a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0 Unless required by
+ applicable law or agreed to in writing, software distributed
+ under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <parent>
+ <groupId>org.apache.aries.subsystem</groupId>
+ <artifactId>subsystem</artifactId>
+ <version>0.3-incubating-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.aries.subsystem.example</groupId>
+ <artifactId>example</artifactId>
+ <name>Apache Aries Subsystem Example</name>
+ <version>0.3-incubating-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <description>
+ Subsystems example for Aries
+ </description>
+
+ <scm>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/aries/trunk/subsystem</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/aries/trunk/subsystem</developerConnection>
+ <url>http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem</url>
+ </scm>
+
+
+ <modules>
+ <module>subsystem-helloIsolation</module>
+ <module>subsystem-helloIsolationRef</module>
+ </modules>
+
+</project>
Propchange: incubator/aries/trunk/subsystem/subsystem-example/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/aries/trunk/subsystem/subsystem-example/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/aries/trunk/subsystem/subsystem-example/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/pom.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/pom.xml?rev=1022208&view=auto
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/pom.xml (added)
+++ incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/pom.xml Wed Oct 13 17:40:48 2010
@@ -0,0 +1,57 @@
+<!--
+ 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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.aries.subsystem.example</groupId>
+ <artifactId>example</artifactId>
+ <version>0.3-incubating-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.apache.aries.subsystem.example.helloIsolation</artifactId>
+ <packaging>bundle</packaging>
+ <name>Apache Aries Subsystem hello Isolation Example</name>
+ <description>
+ Subsystems Hello Isolation example
+ </description>
+
+ <properties>
+ <aries.osgi.activator>
+ org.apache.aries.subsystem.example.helloIsolation.Activator
+ </aries.osgi.activator>
+ <aries.osgi.private.pkg>
+ org.apache.aries.subsystem.example.helloIsolation
+ </aries.osgi.private.pkg>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.compendium</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+</project>
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/Activator.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/Activator.java?rev=1022208&view=auto
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/Activator.java (added)
+++ incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/Activator.java Wed Oct 13 17:40:48 2010
@@ -0,0 +1,103 @@
+/*
+ * 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.
+ */
+
+package org.apache.aries.subsystem.example.helloIsolation;
+
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.BundleEvent;
+import org.osgi.framework.ServiceRegistration;
+import org.osgi.util.tracker.BundleTracker;
+import org.osgi.util.tracker.BundleTrackerCustomizer;
+
+public class Activator implements BundleActivator {
+
+ private ServiceRegistration sr;
+ private BundleTracker bt;
+ int addEventCount = 0;
+ int removeEventCount = 0;
+ int modifyEventCount = 0;
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext
+ * )
+ */
+ public void start(BundleContext context) throws Exception {
+ System.out.println("bundle helloIsolation start");
+ sr = context.registerService(HelloIsolation.class.getName(),
+ new HelloIsolationImpl(), null);
+
+ bt = new BundleTracker(context, Bundle.INSTALLED | Bundle.UNINSTALLED | Bundle.ACTIVE, new BundleTrackerCustomizer() {
+
+ public synchronized Object addingBundle(Bundle bundle, BundleEvent event) {
+ if (event == null) {
+ System.out.println("HelloIsolation " + bundle.getSymbolicName() + "_" + bundle.getVersion().toString() + " - adding Bundle: " + bundle.getSymbolicName() + " event: null");
+ } else {
+ System.out.println("HelloIsolation " + bundle.getSymbolicName() + "_" + bundle.getVersion().toString() + " - adding Bundle: " + bundle.getSymbolicName() + " event: " + event.getType());
+ }
+ addEventCount++;
+ return bundle;
+ }
+
+ public synchronized void modifiedBundle(Bundle bundle, BundleEvent event,
+ Object object) {
+ if (event == null) {
+ System.out.println("HelloIsolation " + bundle.getSymbolicName() + "_" + bundle.getVersion().toString() + " - modifying Bundle: " + bundle.getSymbolicName() + " event: null");
+ } else {
+ System.out.println("HelloIsolation " + bundle.getSymbolicName() + "_" + bundle.getVersion().toString() + " - modifying Bundle: " + bundle.getSymbolicName() + " event: " + event.getType());
+ }
+ modifyEventCount++;
+
+ }
+
+ public synchronized void removedBundle(Bundle bundle, BundleEvent event,
+ Object object) {
+ if (event == null) {
+ System.out.println("HelloIsolation " + bundle.getSymbolicName() + "_" + bundle.getVersion().toString() + " - removing Bundle: " + bundle.getSymbolicName() + " event: null");
+ } else {
+ System.out.println("HelloIsolation " + bundle.getSymbolicName() + "_" + bundle.getVersion().toString() + " - removing Bundle: " + bundle.getSymbolicName() + " event: " + event.getType());
+ }
+ removeEventCount++;
+ }
+
+ });
+ bt.open();
+ }
+
+ public int getAddEventCount() {
+ return addEventCount;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ System.out.println("bundle helloIsolation stop");
+ if (sr != null) {
+ sr.unregister();
+ }
+
+ if (bt != null) {
+ bt.close();
+ }
+ }
+
+}
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/Activator.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/Activator.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/Activator.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolation.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolation.java?rev=1022208&view=auto
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolation.java (added)
+++ incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolation.java Wed Oct 13 17:40:48 2010
@@ -0,0 +1,20 @@
+/*
+ * 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.
+ */
+
+package org.apache.aries.subsystem.example.helloIsolation;
+
+public interface HelloIsolation
+{
+ public void hello();
+}
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolation.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolation.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolation.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolationImpl.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolationImpl.java?rev=1022208&view=auto
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolationImpl.java (added)
+++ incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolationImpl.java Wed Oct 13 17:40:48 2010
@@ -0,0 +1,25 @@
+/*
+ * 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.
+ */
+
+package org.apache.aries.subsystem.example.helloIsolation;
+
+public class HelloIsolationImpl implements HelloIsolation
+{
+
+ public void hello()
+ {
+ System.out.println("hello from HelloIsolationImpl");
+ }
+
+}
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolationImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolationImpl.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolation/src/main/java/org/apache/aries/subsystem/example/helloIsolation/HelloIsolationImpl.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/pom.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/pom.xml?rev=1022208&view=auto
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/pom.xml (added)
+++ incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/pom.xml Wed Oct 13 17:40:48 2010
@@ -0,0 +1,62 @@
+<!--
+ 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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.aries.subsystem.example</groupId>
+ <artifactId>example</artifactId>
+ <version>0.3-incubating-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.apache.aries.subsystem.example.helloIsolationRef</artifactId>
+ <packaging>bundle</packaging>
+ <name>Apache Aries Subsystem hello IsolationRef Example</name>
+ <description>
+ Subsystems Hello Isolation example
+ </description>
+
+ <properties>
+ <aries.osgi.activator>
+ org.apache.aries.subsystem.example.helloIsolationRef.Activator
+ </aries.osgi.activator>
+ <aries.osgi.import>
+ org.apache.aries.subsystem.example.helloIsolation; version="0.3.0",
+ *
+ </aries.osgi.import>
+ <aries.osgi.private.pkg>
+ org.apache.aries.subsystem.example.helloIsolationRef
+ </aries.osgi.private.pkg>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.aries.subsystem.example</groupId>
+ <artifactId>org.apache.aries.subsystem.example.helloIsolation</artifactId>
+ <version>${version}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+</project>
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/Activator.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/Activator.java?rev=1022208&view=auto
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/Activator.java (added)
+++ incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/Activator.java Wed Oct 13 17:40:48 2010
@@ -0,0 +1,42 @@
+
+package org.apache.aries.subsystem.example.helloIsolationRef;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceReference;
+
+import org.apache.aries.subsystem.example.helloIsolation.HelloIsolation;
+
+public class Activator implements BundleActivator
+{
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception
+ {
+ System.out.println("bundle helloIsolationRef start");
+
+ // check to see if we can see helloIsolation service from service registry
+ ServiceReference sr = context.getServiceReference(HelloIsolation.class.getName());
+
+ if (sr != null) {
+ System.out.println("Able to obtain service reference from bundle "
+ + sr.getBundle().getSymbolicName()
+ + "_" + sr.getBundle().getVersion().toString());
+ HelloIsolation hi = (HelloIsolation) context.getService(sr);
+ hi.hello();
+ }
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception
+ {
+ System.out.println("bundle helloIsolationRef stop");
+ }
+
+}
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/Activator.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/Activator.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/Activator.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRef.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRef.java?rev=1022208&view=auto
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRef.java (added)
+++ incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRef.java Wed Oct 13 17:40:48 2010
@@ -0,0 +1,11 @@
+
+package org.apache.aries.subsystem.example.helloIsolationRef;
+
+import org.apache.aries.subsystem.example.helloIsolation.HelloIsolation;
+
+public interface HelloIsolationRef
+{
+ public void helloRef();
+
+ public HelloIsolation getHelloIsolationService();
+}
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRef.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRef.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRef.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRefImpl.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRefImpl.java?rev=1022208&view=auto
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRefImpl.java (added)
+++ incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRefImpl.java Wed Oct 13 17:40:48 2010
@@ -0,0 +1,25 @@
+
+package org.apache.aries.subsystem.example.helloIsolationRef;
+
+import org.apache.aries.subsystem.example.helloIsolation.HelloIsolation;
+
+public class HelloIsolationRefImpl implements HelloIsolationRef
+{
+ HelloIsolation helloIsolation = null;
+
+ public HelloIsolation getHelloIsolationService()
+ {
+ return this.helloIsolation;
+ }
+
+ public void helloRef()
+ {
+ System.out.println("helloRef from HelloIsolationImpl");
+ this.helloIsolation.hello();
+ }
+
+ public void setHelloIsolationService(HelloIsolation hi)
+ {
+ this.helloIsolation = hi;
+ }
+}
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRefImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRefImpl.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/aries/trunk/subsystem/subsystem-example/subsystem-helloIsolationRef/src/main/java/org/apache/aries/subsystem/example/helloIsolationRef/HelloIsolationRefImpl.java
------------------------------------------------------------------------------
svn:mime-type = text/plain