[posteventvssendevent~subversion:2] Initial revision of event in osgi

  • From: slim@kenai.com
  • To: commits@posteventvssendevent.kenai.com
  • Subject: [posteventvssendevent~subversion:2] Initial revision of event in osgi
  • Date: Sat, 26 Sep 2009 13:01:36 +0000

Project:    posteventvssendevent
Repository: subversion
Revision:   2
Author:     slim
Date:       2009-09-26 13:01:30 UTC
Link:       

Log Message:
------------
Initial revision of event in osgi


Revisions:
----------
2


Added Paths:
------------
event/handler/src/test/java/com/jtunisie/osgi
event/notifier/src/test/java/com/jtunisie/osgi/notifier/AppTest.java
event/notifier/src/main/java/com
event/handler/src/main
event/notifier/src/test/java/com
event/src/main/java/com
event/handler/src/main/java/com/jtunisie/osgi/handler/Activator.java
event/handler/src/main/java/com/jtunisie/osgi
event/src/test/java/com/jtunisie
event/handler/src/main/java/com/jtunisie/osgi/handler
event/handler/src/main/java/com/jtunisie
event/handler
event/notifier/src/test
event/handler/src/test/java
event/handler/src/test/java/com/jtunisie/osgi/handler/AppTest.java
event/handler/src/main/java/com/jtunisie/osgi/handler/ExceptionSendEventHandler.java
event/notifier/src/test/java/com/jtunisie/osgi
event/handler/src
event/src/main/java/com/jtunisie/osgi
event/handler/src/test/java/com/jtunisie/osgi/handler
event/handler/src/main/java
event/src/test/java/com/jtunisie/osgi/event/AppTest.java
event/src/main/java/com/jtunisie/osgi/event
event/src/test/java
event/notifier/src/main
event/notifier/src/main/java/com/jtunisie/osgi
event/notifier/src/test/java
event/handler/src/main/java/com/jtunisie/osgi/handler/MultiPostEventHandler.java
event/notifier/src/test/java/com/jtunisie
event/handler/src/test/java/com
event/src
event/handler/src/main/java/com
event/src/test/java/com/jtunisie/osgi/event
event/src/main/java/com/jtunisie/osgi/event/App.java
event/src/test/java/com
event/handler/src/main/java/com/jtunisie/osgi/handler/MultiSendEventHandler.java
event/notifier/src/test/java/com/jtunisie/osgi/notifier
event/notifier/src/main/java/com/jtunisie/osgi/notifier
event/handler/src/test
event/handler/src/main/resources
event/src/main/java
event/notifier/src/main/java/com/jtunisie
event/handler/src/test/java/com/jtunisie
event/notifier/src/main/java
event/notifier
event/notifier/pom.xml
event/notifier/src
event/pom.xml
event/handler/src/main/java/com/jtunisie/osgi/handler/PostEventHandler.java
event/src/test/java/com/jtunisie/osgi
event/src/main/java/com/jtunisie
event/handler/src/main/java/com/jtunisie/osgi/handler/SendEventHandler.java
event/src/main
event/src/test
event/handler/src/main/java/com/jtunisie/osgi/handler/ExceptionPostEventHandler.java
event/handler/pom.xml
event/notifier/src/main/resources
event/notifier/src/main/java/com/jtunisie/osgi/notifier/Activator.java


Diffs:
------
Index: event/notifier/src/test/java/com/jtunisie/osgi/notifier/AppTest.java
===================================================================
--- event/notifier/src/test/java/com/jtunisie/osgi/notifier/AppTest.java      
  (revision 0)
+++ event/notifier/src/test/java/com/jtunisie/osgi/notifier/AppTest.java      
  (revision 2)
@@ -0,0 +1,38 @@
+package com.jtunisie.osgi.notifier;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest 
+    extends TestCase
+{
+    /**
+     * Create the test case
+     *
+     * @param testName name of the test case
+     */
+    public AppTest( String testName )
+    {
+        super( testName );
+    }
+
+    /**
+     * @return the suite of tests being tested
+     */
+    public static Test suite()
+    {
+        return new TestSuite( AppTest.class );
+    }
+
+    /**
+     * Rigourous Test :-)
+     */
+    public void testApp()
+    {
+        assertTrue( true );
+    }
+}
Index: event/notifier/src/main/java/com/jtunisie/osgi/notifier/Activator.java
===================================================================
--- event/notifier/src/main/java/com/jtunisie/osgi/notifier/Activator.java    
  (revision 0)
+++ event/notifier/src/main/java/com/jtunisie/osgi/notifier/Activator.java    
  (revision 2)
@@ -0,0 +1,91 @@
+package com.jtunisie.osgi.notifier;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import java.util.Date;
+import java.util.Dictionary;
+import java.util.Properties;
+import org.osgi.service.event.Event;
+import org.osgi.service.event.EventAdmin;
+import org.osgi.util.tracker.ServiceTracker;
+
+public class Activator implements BundleActivator {
+
+    private EventAdmin eventAdmin;
+    private ServiceTracker eventAdminTracker;
+    private static final String POST_EVENT_QUEUE = "JTUNSIE/post";
+
+    private void sendEvent() {
+        Dictionary props = new Properties();
+        int i = 0;
+        while (true) {
+            Date d = new Date();
+            props.put("property", "" + i++ + " : " + d);
+            System.out.println("before send ; " + d);
+            Event event = new Event(SEND_EVENT_QUEUE, props);
+            eventAdmin.sendEvent(event);
+            System.out.println("after send : " + d);
+            try {
+                Thread.sleep(10 * 1000);
+            } catch (InterruptedException ex) {
+                
Logger.getLogger(Activator.class.getName()).log(Level.SEVERE, null, ex);
+            }
+        }
+    }
+    private static final String SEND_EVENT_QUEUE = "JTUNSIE/send";
+
+    private void postEvent() {
+        Dictionary props = new Properties();
+        int i = 0;
+        while (true) {
+            Date d = new Date();
+            props.put("property", "" + i++ + " : " + d);
+            System.out.println("before post : " + d);
+            Event event = new Event(POST_EVENT_QUEUE, props);
+            eventAdmin.postEvent(event);
+            System.out.println("after post : " + d);
+            try {
+                Thread.sleep(10 * 1000);
+            } catch (InterruptedException ex) {
+                
Logger.getLogger(Activator.class.getName()).log(Level.SEVERE, null, ex);
+            }
+        }
+    }
+
+    @Override
+    public void start(BundleContext bundleContext) throws Exception {
+        eventAdminTracker = new ServiceTracker(bundleContext, 
EventAdmin.class.getName(), null);
+        eventAdminTracker.open();
+        eventAdmin = (EventAdmin) eventAdminTracker.getService();
+        if (eventAdmin != null) {
+            new Thread() {
+
+                @Override
+                public void run() {
+
+                    postEvent();
+
+                }
+            }.start();
+
+
+            new Thread() {
+
+                @Override
+                public void run() {
+
+                    sendEvent();
+
+                }
+            }.start();
+
+        }
+    }
+
+    @Override
+    public void stop(BundleContext bundleContext) throws Exception {
+        eventAdminTracker.close();
+    }
+}
Index: event/notifier/pom.xml
===================================================================
--- event/notifier/pom.xml      (revision 0)
+++ event/notifier/pom.xml      (revision 2)
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ;
http://maven.apache.org/xsd/maven-4.0.0.xsd" ;
xmlns="http://maven.apache.org/POM/4.0.0";
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <artifactId>event</artifactId>
+    <groupId>com.jtunisie.osgi</groupId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+  <groupId>com.jtunisie.osgi</groupId>
+  <artifactId>notifier</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <name>notifier</name>
+  <url>http://www.jroller.com/ouertani/</url>
+  <packaging>bundle</packaging>
+    <build>
+        <plugins>
+                <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+
+                        
<Private-Package>com.jtunisie.osgi.notifier</Private-Package>
+                        
<Bundle-activator>com.jtunisie.osgi.notifier.Activator</Bundle-activator>     
                   
+
+                    </instructions>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.6</source>
+                    <target>1.6</target>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+    <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.osgi</groupId>
+      <artifactId>org.osgi.compendium</artifactId>
+      <version>4.2.0</version>
+      <type>jar</type>
+    </dependency>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.core</artifactId>
+            <version>4.2.0</version>
+            <type>jar</type>
+        </dependency>
+    </dependencies>
+</project>
+
+
+

Property changes on: event/notifier
___________________________________________________________________
Added: svn:ignore
   + target


Index: event/src/test/java/com/jtunisie/osgi/event/AppTest.java
===================================================================
--- event/src/test/java/com/jtunisie/osgi/event/AppTest.java    (revision 0)
+++ event/src/test/java/com/jtunisie/osgi/event/AppTest.java    (revision 2)
@@ -0,0 +1,38 @@
+package com.jtunisie.osgi.event;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest 
+    extends TestCase
+{
+    /**
+     * Create the test case
+     *
+     * @param testName name of the test case
+     */
+    public AppTest( String testName )
+    {
+        super( testName );
+    }
+
+    /**
+     * @return the suite of tests being tested
+     */
+    public static Test suite()
+    {
+        return new TestSuite( AppTest.class );
+    }
+
+    /**
+     * Rigourous Test :-)
+     */
+    public void testApp()
+    {
+        assertTrue( true );
+    }
+}
Index: event/src/main/java/com/jtunisie/osgi/event/App.java
===================================================================
--- event/src/main/java/com/jtunisie/osgi/event/App.java        (revision 0)
+++ event/src/main/java/com/jtunisie/osgi/event/App.java        (revision 2)
@@ -0,0 +1,13 @@
+package com.jtunisie.osgi.event;
+
+/**
+ * Hello world!
+ *
+ */
+public class App 
+{
+    public static void main( String[] args )
+    {
+        System.out.println( "Hello World!" );
+    }
+}
Index: event/pom.xml
===================================================================
--- event/pom.xml       (revision 0)
+++ event/pom.xml       (revision 2)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>com.jtunisie.osgi</groupId>
+  <artifactId>event</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <name>event</name>
+  <packaging>pom</packaging>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <modules>
+    <module>notifier</module>
+    <module>handler</module>
+  </modules>
+</project>
\ No newline at end of file
Index: event/handler/src/test/java/com/jtunisie/osgi/handler/AppTest.java
===================================================================
--- event/handler/src/test/java/com/jtunisie/osgi/handler/AppTest.java  
(revision 0)
+++ event/handler/src/test/java/com/jtunisie/osgi/handler/AppTest.java  
(revision 2)
@@ -0,0 +1,38 @@
+package com.jtunisie.osgi.handler;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest 
+    extends TestCase
+{
+    /**
+     * Create the test case
+     *
+     * @param testName name of the test case
+     */
+    public AppTest( String testName )
+    {
+        super( testName );
+    }
+
+    /**
+     * @return the suite of tests being tested
+     */
+    public static Test suite()
+    {
+        return new TestSuite( AppTest.class );
+    }
+
+    /**
+     * Rigourous Test :-)
+     */
+    public void testApp()
+    {
+        assertTrue( true );
+    }
+}
Index: 
event/handler/src/main/java/com/jtunisie/osgi/handler/MultiPostEventHandler.java
===================================================================
--- 
event/handler/src/main/java/com/jtunisie/osgi/handler/MultiPostEventHandler.java
    (revision 0)
+++ 
event/handler/src/main/java/com/jtunisie/osgi/handler/MultiPostEventHandler.java
    (revision 2)
@@ -0,0 +1,35 @@
+/*
+ * MultiPostEventHandler.java
+ * 
+ * Copyright (C) 2009
+ * Date    :       Sep 26, 2009
+ * Time    :       1:18:54 PM
+ * Autor   :       Slim OUERTANI
+ * 
+ * ---------+-------+-----------+-----------------------------------------
+ * #        | Autor | Date      | Info
+ * 
---------+-------+-----------+-----+-----------------------------------------
+ * Creation |  SO   |26/09/2009 |
+ * ---------+-------+-----------+-----------------------------------------
+ */
+package com.jtunisie.osgi.handler;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import org.osgi.framework.BundleContext;
+import org.osgi.service.event.Event;
+import org.osgi.service.event.EventHandler;
+
+/**
+ *
+ * @author Slim OUERTANI
+ */
+public class MultiPostEventHandler implements EventHandler {
+
+   
+    @Override
+    public void handleEvent(Event event) {
+         String value = event.getProperty("property").toString();
+         System.out.println("---------------->Post value : " + value);
+    }
+}
Index: 
event/handler/src/main/java/com/jtunisie/osgi/handler/ExceptionPostEventHandler.java
===================================================================
--- 
event/handler/src/main/java/com/jtunisie/osgi/handler/ExceptionPostEventHandler.java
        (revision 0)
+++ 
event/handler/src/main/java/com/jtunisie/osgi/handler/ExceptionPostEventHandler.java
        (revision 2)
@@ -0,0 +1,32 @@
+/*
+ * ExceptionPostEventHandler.java
+ * 
+ * Copyright (C) 2009
+ * Date    :       Sep 26, 2009
+ * Time    :       1:40:54 PM
+ * Autor   :       Slim OUERTANI
+ * 
+ * ---------+-------+-----------+-----------------------------------------
+ * #        | Autor | Date      | Info
+ * 
---------+-------+-----------+-----+-----------------------------------------
+ * Creation |  SO   |26/09/2009 |
+ * ---------+-------+-----------+-----------------------------------------
+ */
+package com.jtunisie.osgi.handler;
+
+import org.osgi.service.event.Event;
+import org.osgi.service.event.EventHandler;
+
+/**
+ *
+ * @author Slim OUERTANI
+ */
+public class ExceptionPostEventHandler implements EventHandler {
+
+    @Override
+    public void handleEvent(Event event) {
+        String value = event.getProperty("property").toString();
+        System.out.println("---------------->Post value : " + value);
+        throw new RuntimeException();
+    }
+}
Index: 
event/handler/src/main/java/com/jtunisie/osgi/handler/MultiSendEventHandler.java
===================================================================
--- 
event/handler/src/main/java/com/jtunisie/osgi/handler/MultiSendEventHandler.java
    (revision 0)
+++ 
event/handler/src/main/java/com/jtunisie/osgi/handler/MultiSendEventHandler.java
    (revision 2)
@@ -0,0 +1,31 @@
+/*
+ * MultiSendEventHandler.java
+ * 
+ * Copyright (C) 2009
+ * Date    :       Sep 26, 2009
+ * Time    :       1:27:09 PM
+ * Autor   :       Slim OUERTANI
+ * 
+ * ---------+-------+-----------+-----------------------------------------
+ * #        | Autor | Date      | Info
+ * 
---------+-------+-----------+-----+-----------------------------------------
+ * Creation |  SO   |26/09/2009 |
+ * ---------+-------+-----------+-----------------------------------------
+ */
+package com.jtunisie.osgi.handler;
+
+import org.osgi.service.event.Event;
+import org.osgi.service.event.EventHandler;
+
+/**
+ *
+ * @author Slim OUERTANI
+ */
+public class MultiSendEventHandler implements EventHandler {
+
+    @Override
+    public void handleEvent(Event event) {
+        String value = event.getProperty("property").toString();
+        System.out.println("---------------->Send value : " + value);
+    }
+}
Index: 
event/handler/src/main/java/com/jtunisie/osgi/handler/PostEventHandler.java
===================================================================
--- 
event/handler/src/main/java/com/jtunisie/osgi/handler/PostEventHandler.java 
(revision 0)
+++ 
event/handler/src/main/java/com/jtunisie/osgi/handler/PostEventHandler.java 
(revision 2)
@@ -0,0 +1,40 @@
+/*
+ * PostEventHandler.java
+ * 
+ * Copyright (C) 2009
+ * Date    :       Sep 26, 2009
+ * Time    :       12:20:16 PM
+ * Autor   :       Slim OUERTANI
+ * 
+ * ---------+-------+-----------+-----------------------------------------
+ * #        | Autor | Date      | Info
+ * 
---------+-------+-----------+-----+-----------------------------------------
+ * Creation |  SO   |26/09/2009 |
+ * ---------+-------+-----------+-----------------------------------------
+ */
+
+package com.jtunisie.osgi.handler;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import org.osgi.service.event.Event;
+import org.osgi.service.event.EventHandler;
+
+/**
+ *
+ * @author Slim OUERTANI
+ */
+public class PostEventHandler implements EventHandler{
+
+    @Override
+    public void handleEvent(Event event) {
+         String value = event.getProperty("property").toString();
+       try {
+            Thread.sleep(30 * 1000);
+        } catch (InterruptedException ex) {
+            Logger.getLogger(Activator.class.getName()).log(Level.SEVERE, 
null, ex);
+        }
+        System.out.println("---------------->Post value : " + value);       
+    }
+
+}
Index: 
event/handler/src/main/java/com/jtunisie/osgi/handler/ExceptionSendEventHandler.java
===================================================================
--- 
event/handler/src/main/java/com/jtunisie/osgi/handler/ExceptionSendEventHandler.java
        (revision 0)
+++ 
event/handler/src/main/java/com/jtunisie/osgi/handler/ExceptionSendEventHandler.java
        (revision 2)
@@ -0,0 +1,36 @@
+/*
+ * ExceptionSendEventHandler.java
+ * 
+ * Copyright (C) 2009
+ * Date    :       Sep 26, 2009
+ * Time    :       1:35:32 PM
+ * Autor   :       Slim OUERTANI
+ * 
+ * ---------+-------+-----------+-----------------------------------------
+ * #        | Autor | Date      | Info
+ * 
---------+-------+-----------+-----+-----------------------------------------
+ * Creation |  SO   |26/09/2009 |
+ * ---------+-------+-----------+-----------------------------------------
+ */
+
+package com.jtunisie.osgi.handler;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import org.osgi.service.event.Event;
+import org.osgi.service.event.EventHandler;
+
+/**
+ *
+ * @author Slim OUERTANI
+ */
+public class ExceptionSendEventHandler implements EventHandler{
+
+    @Override
+    public void handleEvent(Event event) {
+       String value = event.getProperty("property").toString();
+        System.out.println("---------------->Send value : " + value);
+        throw new RuntimeException();
+    }
+
+}
Index: 
event/handler/src/main/java/com/jtunisie/osgi/handler/SendEventHandler.java
===================================================================
--- 
event/handler/src/main/java/com/jtunisie/osgi/handler/SendEventHandler.java 
(revision 0)
+++ 
event/handler/src/main/java/com/jtunisie/osgi/handler/SendEventHandler.java 
(revision 2)
@@ -0,0 +1,40 @@
+/*
+ * SendEventHandler.java
+ * 
+ * Copyright (C) 2009
+ * Date    :       Sep 26, 2009
+ * Time    :       12:20:39 PM
+ * Autor   :       Slim OUERTANI
+ * 
+ * ---------+-------+-----------+-----------------------------------------
+ * #        | Autor | Date      | Info
+ * 
---------+-------+-----------+-----+-----------------------------------------
+ * Creation |  SO   |26/09/2009 |
+ * ---------+-------+-----------+-----------------------------------------
+ */
+
+package com.jtunisie.osgi.handler;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import org.osgi.service.event.Event;
+import org.osgi.service.event.EventHandler;
+
+/**
+ *
+ * @author Slim OUERTANI
+ */
+public class SendEventHandler implements EventHandler{
+
+    @Override
+    public void handleEvent(Event event) {
+         String value = event.getProperty("property").toString();
+          try {
+            Thread.sleep(30 * 1000);
+        } catch (InterruptedException ex) {
+            Logger.getLogger(Activator.class.getName()).log(Level.SEVERE, 
null, ex);
+        }
+        System.out.println("---------------->Send value : " + value);       
+    }
+
+}
Index: event/handler/src/main/java/com/jtunisie/osgi/handler/Activator.java
===================================================================
--- event/handler/src/main/java/com/jtunisie/osgi/handler/Activator.java      
  (revision 0)
+++ event/handler/src/main/java/com/jtunisie/osgi/handler/Activator.java      
  (revision 2)
@@ -0,0 +1,49 @@
+package com.jtunisie.osgi.handler;
+
+import java.util.Dictionary;
+import java.util.Hashtable;
+import java.util.Properties;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.service.event.Event;
+import org.osgi.service.event.EventConstants;
+import org.osgi.service.event.EventHandler;
+
+/**
+ * Hello world!
+ *
+ */
+public class Activator implements  BundleActivator {
+
+    private static final String POST_EVENT_QUEUE = "JTUNSIE/post";
+    private static final String SEND_EVENT_QUEUE = "JTUNSIE/send";
+
+    
+
+    @Override
+    public void start(BundleContext context) throws Exception {
+        Dictionary dp = new Hashtable();
+        dp.put(EventConstants.EVENT_TOPIC, POST_EVENT_QUEUE);
+        Dictionary ds = new Hashtable();
+        ds.put(EventConstants.EVENT_TOPIC, SEND_EVENT_QUEUE);
+        
+//        context.registerService(EventHandler.class.getName(), new 
PostEventHandler(), dp);
+//        context.registerService(EventHandler.class.getName(), new 
SendEventHandler(), ds);
+
+
+//exception
+//        context.registerService(EventHandler.class.getName(), new 
ExceptionPostEventHandler(), dp);
+//        context.registerService(EventHandler.class.getName(), new 
ExceptionSendEventHandler(), ds);
+
+
+        for (int i = 0; i < 50000; i++) {
+           context.registerService(EventHandler.class.getName(), new 
MultiPostEventHandler(), dp);
+        }
+    }
+
+    @Override
+    public void stop(BundleContext context) throws Exception {
+    }
+}
Index: event/handler/pom.xml
===================================================================
--- event/handler/pom.xml       (revision 0)
+++ event/handler/pom.xml       (revision 2)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ;
http://maven.apache.org/xsd/maven-4.0.0.xsd" ;
xmlns="http://maven.apache.org/POM/4.0.0";
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <artifactId>event</artifactId>
+        <groupId>com.jtunisie.osgi</groupId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <groupId>com.jtunisie.osgi</groupId>
+    <artifactId>handler</artifactId>
+    <version>1.0-SNAPSHOT</version>
+    <name>handler</name>
+    <url>http://www.jroller.com/ouertani/</url>
+    <packaging>bundle</packaging>
+    <build>
+        <plugins>
+          
+                <plugin>
+                    <groupId>org.apache.felix</groupId>
+                    <artifactId>maven-bundle-plugin</artifactId>
+                    <extensions>true</extensions>
+                    <configuration>
+                        <instructions>
+
+                            
<Private-Package>com.jtunisie.osgi.handler</Private-Package>
+                            
<Bundle-activator>com.jtunisie.osgi.handler.Activator</Bundle-activator>
+
+                        </instructions>
+                    </configuration>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-compiler-plugin</artifactId>
+                    <version>2.0.2</version>
+                    <configuration>
+                        <source>1.6</source>
+                        <target>1.6</target>
+                    </configuration>
+                </plugin>
+            </plugins>
+        </build>
+        <dependencies>
+            <dependency>
+                <groupId>junit</groupId>
+                <artifactId>junit</artifactId>
+                <version>3.8.1</version>
+                <scope>test</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.osgi</groupId>
+                <artifactId>org.osgi.compendium</artifactId>
+                <version>4.2.0</version>
+                <type>jar</type>
+            </dependency>
+            <dependency>
+                <groupId>org.osgi</groupId>
+                <artifactId>org.osgi.core</artifactId>
+                <version>4.2.0</version>
+                <type>jar</type>
+            </dependency>
+        </dependencies>
+    </project>
+
+
+

Property changes on: event/handler
___________________________________________________________________
Added: svn:ignore
   + target







[posteventvssendevent~subversion:2] Initial revision of event in osgi

slim 09/26/2009
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close