Permalink
Browse files

Updated deprecated Container handler to org.wildfly.swarm.Swarm

  • Loading branch information...
1 parent 5b8c758 commit 9105bbf61ab05e4b3b5fb36b46410017f8e3ec5c srinivasavasu committed Nov 16, 2016
@@ -1,7 +1,7 @@
package org.wildfly.swarm.examples.netflix.ribbon.events;
import org.jboss.shrinkwrap.api.ShrinkWrap;
-import org.wildfly.swarm.container.Container;
+import org.wildfly.swarm.Swarm;
import org.wildfly.swarm.jaxrs.JAXRSArchive;
/**
@@ -10,7 +10,7 @@
public class Main {
public static void main(String[] args) throws Exception {
- Container container = new Container();
+ Swarm container = new Swarm();
JAXRSArchive deployment = ShrinkWrap.create(JAXRSArchive.class);
deployment.addPackage( Main.class.getPackage() );
deployment.addAllDependencies();
@@ -1,7 +1,7 @@
package org.wildfly.swarm.examples.netflix.ribbon.time;
import org.jboss.shrinkwrap.api.ShrinkWrap;
-import org.wildfly.swarm.container.Container;
+import org.wildfly.swarm.Swarm;
import org.wildfly.swarm.jaxrs.JAXRSArchive;
import org.wildfly.swarm.netflix.ribbon.RibbonArchive;
@@ -11,7 +11,7 @@
public class Main {
public static void main(String[] args) throws Exception {
- Container container = new Container();
+ Swarm container = new Swarm();
JAXRSArchive deployment = ShrinkWrap.create(JAXRSArchive.class);
deployment.addResource(TimeResource.class);
deployment.addAllDependencies();

0 comments on commit 9105bbf

Please sign in to comment.