tom

Moved the samples to a separate package.

...@@ -3,7 +3,7 @@ package org.onlab.onos.cli; ...@@ -3,7 +3,7 @@ package org.onlab.onos.cli;
3 import org.apache.karaf.shell.commands.Argument; 3 import org.apache.karaf.shell.commands.Argument;
4 import org.apache.karaf.shell.commands.Command; 4 import org.apache.karaf.shell.commands.Command;
5 import org.apache.karaf.shell.console.OsgiCommandSupport; 5 import org.apache.karaf.shell.console.OsgiCommandSupport;
6 -import org.onlab.onos.net.GreetService; 6 +import org.onlab.onos.GreetService;
7 7
8 /** 8 /**
9 * Simple command example to demonstrate use of Karaf shell extensions; shows 9 * Simple command example to demonstrate use of Karaf shell extensions; shows
......
...@@ -2,7 +2,7 @@ package org.onlab.onos.cli; ...@@ -2,7 +2,7 @@ package org.onlab.onos.cli;
2 2
3 import org.apache.karaf.shell.console.Completer; 3 import org.apache.karaf.shell.console.Completer;
4 import org.apache.karaf.shell.console.completer.StringsCompleter; 4 import org.apache.karaf.shell.console.completer.StringsCompleter;
5 -import org.onlab.onos.net.GreetService; 5 +import org.onlab.onos.GreetService;
6 6
7 import java.util.Iterator; 7 import java.util.Iterator;
8 import java.util.List; 8 import java.util.List;
......
1 -package org.onlab.onos.net; 1 +package org.onlab.onos;
2 2
3 /** 3 /**
4 * Example of a simple service that provides greetings and it 4 * Example of a simple service that provides greetings and it
......
1 -package org.onlab.onos.net.trivial.impl; 1 +package org.onlab.onos.impl;
2 2
3 import com.google.common.collect.ImmutableSet; 3 import com.google.common.collect.ImmutableSet;
4 import org.apache.felix.scr.annotations.Activate; 4 import org.apache.felix.scr.annotations.Activate;
5 import org.apache.felix.scr.annotations.Component; 5 import org.apache.felix.scr.annotations.Component;
6 import org.apache.felix.scr.annotations.Deactivate; 6 import org.apache.felix.scr.annotations.Deactivate;
7 import org.apache.felix.scr.annotations.Service; 7 import org.apache.felix.scr.annotations.Service;
8 -import org.onlab.onos.net.GreetService; 8 +import org.onlab.onos.GreetService;
9 import org.slf4j.Logger; 9 import org.slf4j.Logger;
10 import org.slf4j.LoggerFactory; 10 import org.slf4j.LoggerFactory;
11 11
......
1 -package org.onlab.onos.net.trivial.impl; 1 +package org.onlab.onos.impl;
2 2
3 import org.apache.felix.scr.annotations.Activate; 3 import org.apache.felix.scr.annotations.Activate;
4 import org.apache.felix.scr.annotations.Component; 4 import org.apache.felix.scr.annotations.Component;
5 import org.apache.felix.scr.annotations.Deactivate; 5 import org.apache.felix.scr.annotations.Deactivate;
6 import org.apache.felix.scr.annotations.Reference; 6 import org.apache.felix.scr.annotations.Reference;
7 import org.apache.felix.scr.annotations.ReferenceCardinality; 7 import org.apache.felix.scr.annotations.ReferenceCardinality;
8 -import org.onlab.onos.net.GreetService; 8 +import org.onlab.onos.GreetService;
9 import org.slf4j.Logger; 9 import org.slf4j.Logger;
10 import org.slf4j.LoggerFactory; 10 import org.slf4j.LoggerFactory;
11 11
......
1 -package org.onlab.onos.net.trivial.impl; 1 +package org.onlab.onos.impl;
2 2
3 import org.junit.Test; 3 import org.junit.Test;
4 -import org.onlab.onos.net.GreetService; 4 +import org.onlab.onos.GreetService;
5 5
6 import java.util.Iterator; 6 import java.util.Iterator;
7 7
......
...@@ -2,7 +2,7 @@ package org.onlab.onos.rest; ...@@ -2,7 +2,7 @@ package org.onlab.onos.rest;
2 2
3 import com.fasterxml.jackson.databind.ObjectMapper; 3 import com.fasterxml.jackson.databind.ObjectMapper;
4 import com.fasterxml.jackson.databind.node.ObjectNode; 4 import com.fasterxml.jackson.databind.node.ObjectNode;
5 -import org.onlab.onos.net.GreetService; 5 +import org.onlab.onos.GreetService;
6 import org.onlab.rest.BaseResource; 6 import org.onlab.rest.BaseResource;
7 7
8 import javax.ws.rs.DefaultValue; 8 import javax.ws.rs.DefaultValue;
......
...@@ -4,8 +4,8 @@ import com.sun.jersey.api.client.WebResource; ...@@ -4,8 +4,8 @@ import com.sun.jersey.api.client.WebResource;
4 import com.sun.jersey.test.framework.JerseyTest; 4 import com.sun.jersey.test.framework.JerseyTest;
5 import org.junit.BeforeClass; 5 import org.junit.BeforeClass;
6 import org.junit.Test; 6 import org.junit.Test;
7 -import org.onlab.onos.net.GreetService; 7 +import org.onlab.onos.GreetService;
8 -import org.onlab.onos.net.trivial.impl.GreetManager; 8 +import org.onlab.onos.impl.GreetManager;
9 import org.onlab.osgi.ServiceDirectory; 9 import org.onlab.osgi.ServiceDirectory;
10 import org.onlab.osgi.TestServiceDirectory; 10 import org.onlab.osgi.TestServiceDirectory;
11 11
......
1 package org.onlab.onos.gui; 1 package org.onlab.onos.gui;
2 2
3 -import org.onlab.onos.net.GreetService; 3 +import org.onlab.onos.GreetService;
4 import org.onlab.rest.BaseResource; 4 import org.onlab.rest.BaseResource;
5 5
6 import javax.ws.rs.DefaultValue; 6 import javax.ws.rs.DefaultValue;
......
...@@ -100,9 +100,8 @@ ...@@ -100,9 +100,8 @@
100 com.sun.jersey.server.impl.container.servlet, 100 com.sun.jersey.server.impl.container.servlet,
101 com.fasterxml.jackson.databind, 101 com.fasterxml.jackson.databind,
102 com.fasterxml.jackson.databind.node, 102 com.fasterxml.jackson.databind.node,
103 - org.onlab.osgi.*,
104 org.onlab.rest.*, 103 org.onlab.rest.*,
105 - org.onlab.onos.net.* 104 + org.onlab.onos.*
106 </Import-Package> 105 </Import-Package>
107 <Web-ContextPath>${web.context}</Web-ContextPath> 106 <Web-ContextPath>${web.context}</Web-ContextPath>
108 </instructions> 107 </instructions>
......