tom

Added onlab-misc module and renamed onos-util-* modules to onlab-*.

......@@ -23,8 +23,9 @@
description="ONOS services and model API">
<feature>scr</feature>
<feature>onos-thirdparty-base</feature>
<bundle>mvn:org.onlab.onos/onos-utils-osgi/1.0.0-SNAPSHOT</bundle>
<bundle>mvn:org.onlab.onos/onos-utils-rest/1.0.0-SNAPSHOT</bundle>
<bundle>mvn:org.onlab.onos/onlab-misc/1.0.0-SNAPSHOT</bundle>
<bundle>mvn:org.onlab.onos/onlab-osgi/1.0.0-SNAPSHOT</bundle>
<bundle>mvn:org.onlab.onos/onlab-rest/1.0.0-SNAPSHOT</bundle>
<bundle>mvn:org.onlab.onos/onos-api/1.0.0-SNAPSHOT</bundle>
</feature>
......
package org.onlab.onos.event.impl;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;
import org.onlab.onos.event.Event;
import org.onlab.onos.event.EventDispatchService;
import org.onlab.onos.event.EventSink;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* Simple implementation of an event dispatching service.
*/
@Component(immediate = true)
@Service
public class SimpleEventDispatcher implements EventDispatchService {
private final ExecutorService executor = Executors.newSingleThreadExecutor();
@Override
public void post(Event event) {
}
@Override
public <E extends Event> void addSink(Class<E> eventClass, EventSink<E> sink) {
}
@Override
public <E extends Event> void removeSink(Class<E> eventClass) {
}
@Override
public <E extends Event> EventSink<E> getSink(Class<E> eventClass) {
return null;
}
@Override
public Set<Class<? extends Event>> getSinks() {
return null;
}
}
package org.onlab.util;
public class Foo {
}
......@@ -6,15 +6,15 @@
<parent>
<groupId>org.onlab.onos</groupId>
<artifactId>onos-utils</artifactId>
<artifactId>onlab-utils</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>onos-utils-osgi</artifactId>
<artifactId>onlab-osgi</artifactId>
<packaging>bundle</packaging>
<description>OSGI utilities</description>
<description>ON.Lab OSGI utilities</description>
<dependencies>
<dependency>
......
......@@ -11,12 +11,13 @@
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>onos-utils</artifactId>
<artifactId>onlab-utils</artifactId>
<packaging>pom</packaging>
<description>Domain agnostic utilities</description>
<description>Domain agnostic ON.Lab utilities</description>
<modules>
<module>misc</module>
<module>osgi</module>
<module>rest</module>
</modules>
......@@ -28,7 +29,6 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
......
......@@ -6,15 +6,15 @@
<parent>
<groupId>org.onlab.onos</groupId>
<artifactId>onos-utils</artifactId>
<artifactId>onlab-utils</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>onos-utils-rest</artifactId>
<artifactId>onlab-rest</artifactId>
<packaging>bundle</packaging>
<description>JAX-RS utilities</description>
<description>ON.Lab JAX-RS utilities</description>
<dependencies>
<dependency>
......@@ -36,7 +36,7 @@
<dependency>
<groupId>org.onlab.onos</groupId>
<artifactId>onos-utils-osgi</artifactId>
<artifactId>onlab-osgi</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
......
......@@ -33,13 +33,13 @@
<dependency>
<groupId>org.onlab.onos</groupId>
<artifactId>onos-utils-osgi</artifactId>
<artifactId>onlab-osgi</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.onlab.onos</groupId>
<artifactId>onos-utils-rest</artifactId>
<artifactId>onlab-rest</artifactId>
<version>${project.version}</version>
</dependency>
......