felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r953702 - in /felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb: ./ recipes/ src/org/apache/felix/framework/vb/b002/
Date Fri, 11 Jun 2010 13:57:46 GMT
Author: rickhall
Date: Fri Jun 11 13:57:45 2010
New Revision: 953702

URL: http://svn.apache.org/viewvc?rev=953702&view=rev
Log:
Add simple bundle example.

Added:
    felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/recipes/vb.b002.bnd
    felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/
    felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/Activator.java
    felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/Service.java
    felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/ServiceImpl.java
Modified:
    felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/   (props changed)
    felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/bnd.bnd

Propchange: felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Jun 11 13:57:45 2010
@@ -0,0 +1,23 @@
+tmp
+classes
+target
+*.log
+*.ipr
+*.iws
+*.iml
+lib
+bundle
+dist
+.project
+.classpath
+bin
+build
+.settings
+.wtpmodules
+.deployables
+nbbuild.xml
+nbproject
+*.patch
+.externalToolBuilders
+maven-eclipse.xml
+

Modified: felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/bnd.bnd
URL: http://svn.apache.org/viewvc/felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/bnd.bnd?rev=953702&r1=953701&r2=953702&view=diff
==============================================================================
--- felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/bnd.bnd (original)
+++ felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/bnd.bnd Fri Jun 11 13:57:45
2010
@@ -2,7 +2,7 @@
 
 Private-Package: ${p}
 Include-Resource: \
- vb.b001.jar
+ vb.b001.jar, vb.b002.jar
 
 -buildpath: \
         org.apache.felix.framework; version=3.1.0, \

Added: felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/recipes/vb.b002.bnd
URL: http://svn.apache.org/viewvc/felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/recipes/vb.b002.bnd?rev=953702&view=auto
==============================================================================
--- felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/recipes/vb.b002.bnd (added)
+++ felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/recipes/vb.b002.bnd Fri
Jun 11 13:57:45 2010
@@ -0,0 +1,4 @@
+Bundle-SymbolicName: org.apache.felix.framework.vb.b002
+Bundle-Activator: org.apache.felix.framework.vb.b002.Activator
+Private-Package: org.apache.felix.framework.vb.b002
+Export-Package: org.apache.felix.framework.vb.b002.service

Added: felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/Activator.java
URL: http://svn.apache.org/viewvc/felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/Activator.java?rev=953702&view=auto
==============================================================================
--- felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/Activator.java
(added)
+++ felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/Activator.java
Fri Jun 11 13:57:45 2010
@@ -0,0 +1,15 @@
+package org.apache.felix.framework.vb.b002;
+
+import org.osgi.framework.*;
+
+public class Activator implements BundleActivator
+{
+    public void start(BundleContext bc)
+    {
+        bc.registerService("vb2.service.Service", new ServiceImpl(), null);
+    }
+
+    public void stop(BundleContext bc)
+    {
+    }
+}

Added: felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/Service.java
URL: http://svn.apache.org/viewvc/felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/Service.java?rev=953702&view=auto
==============================================================================
--- felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/Service.java
(added)
+++ felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/Service.java
Fri Jun 11 13:57:45 2010
@@ -0,0 +1,6 @@
+package org.apache.felix.framework.vb.b002.service;
+
+public interface Service
+{
+    void sayHello();
+}

Added: felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/ServiceImpl.java
URL: http://svn.apache.org/viewvc/felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/ServiceImpl.java?rev=953702&view=auto
==============================================================================
--- felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/ServiceImpl.java
(added)
+++ felix/sandbox/rickhall/vb-bnd-test/org.apache.felix.framework.vb/src/org/apache/felix/framework/vb/b002/ServiceImpl.java
Fri Jun 11 13:57:45 2010
@@ -0,0 +1,11 @@
+package org.apache.felix.framework.vb.b002;
+
+import org.apache.felix.framework.vb.b002.service.Service;
+
+class ServiceImpl implements Service
+{
+    public void sayHello()
+    {
+        System.out.println("Hello, virtual world!");
+    }
+}



Mime
View raw message