Permalink
Browse files

Perform renaming of Container to Swarm to remove deprecations.

  • Loading branch information...
1 parent 66e8f7a commit e42738f52674801108ebfd86b3b268f5839a7b73 @bobmcwhirter bobmcwhirter committed Aug 12, 2016
Showing with 422 additions and 482 deletions.
  1. +8 −9 arjuna/arjuna-shrinkwrap/src/main/java/org/wildfly/swarm/examples/arjuna/Main.java
  2. +3 −5 arjuna/arjuna-shrinkwrap/src/main/java/org/wildfly/swarm/examples/arjuna/MyResource.java
  3. +11 −14 arjuna/stm-shrinkwrap/src/main/java/org/wildfly/swarm/examples/stm/Main.java
  4. +0 −6 arjuna/stm-shrinkwrap/src/main/java/org/wildfly/swarm/examples/stm/MyResource.java
  5. +4 −4 arjuna/stm-shrinkwrap/src/main/java/org/wildfly/swarm/examples/stm/SampleLockable.java
  6. +3 −3 camel/camel-activemq/src/test/java/org/wildflyswarm/examples/camel/activemq/CamelActiveMQIT.java
  7. +2 −2 camel/camel-cdi/src/main/java/org/wildfly/swarm/examples/camel/cdi/Main.java
  8. +2 −1 camel/camel-cxf-jaxrs/src/main/java/org/wildfly/swarm/examples/camel/cxf/jaxrs/Main.java
  9. +2 −2 camel/camel-cxf-jaxws/src/main/java/org/wildfly/swarm/examples/camel/cxf/jaxws/Main.java
  10. +2 −2 camel/camel-jms/src/main/java/org/wildfly/swarm/examples/camel/jms/Main.java
  11. +3 −2 camel/camel-jpa/src/main/java/org/wildfly/swarm/examples/camel/jpa/model/Customer.java
  12. +5 −6 camel/camel-mail/src/main/java/org/wildfly/swarm/examples/camel/mail/Main.java
  13. +2 −2 camel/camel-swagger/src/main/java/org/wildfly/swarm/examples/camel/swagger/Main.java
  14. +5 −7 datasource/datasource-deployment/src/main/java/org/wildfly/swarm/examples/ds/deployment/Main.java
  15. +15 −9 datasource/datasource-subsystem/src/main/java/org/wildfly/swarm/examples/ds/subsystem/Main.java
  16. +14 −10 datasource/datasource-war/src/main/java/org/wildfly/swarm/examples/ds/war/Main.java
  17. +3 −2 docker/docker-jaxrs/src/main/java/org/wildfly/swarm/example/docker/JaxRsApplication.java
  18. +2 −1 docker/docker-jaxrs/src/main/java/org/wildfly/swarm/example/docker/SwarmMain.java
  19. +3 −3 gradle/src/main/java/org/wildfly/swarm/examples/gradle/Main.java
  20. +4 −4 jaxrs/contract-based-testing/jaxrs-consumer/src/it/java/org/wildfly/swarm/it/jaxrs/ConsumerTest.java
  21. +2 −2 .../contract-based-testing/jaxrs-consumer/src/it/java/org/wildfly/swarm/it/jaxrs/ProviderClient.java
  22. +12 −12 jaxrs/health/src/main/java/org/wildfly/swarm/examples/jaxrs/health/Main.java
  23. +0 −2 jaxrs/health/src/main/java/org/wildfly/swarm/examples/jaxrs/health/RegularResource.java
  24. +4 −4 jaxrs/jaxrs-shrinkwrap-ajp/src/main/java/org/wildfly/swarm/examples/jaxrs/shrinkwrap/Main.java
  25. +0 −3 jaxrs/jaxrs-shrinkwrap-https/src/it/java/org/wildfly/swarm/it/jaxrs/JAXRSApplicationIT.java
  26. +4 −3 jaxrs/jaxrs-shrinkwrap-https/src/main/java/org/wildfly/swarm/examples/jaxrs/shrinkwrap/Main.java
  27. +3 −3 jaxrs/jaxrs-shrinkwrap/src/main/java/org/wildfly/swarm/examples/jaxrs/shrinkwrap/Main.java
  28. +1 −1 jaxrs/kotlin/src/main/kotlin/org/wildfly/swarm/examples/kotlin/KotlinResource.kt
  29. +3 −3 jaxrs/swagger/src/main/java/org/wildfly/swarm/examples/jaxrs/swagger/Main.java
  30. +2 −1 jaxrs/swagger/src/main/java/org/wildfly/swarm/examples/jaxrs/swagger/TimeResource.java
  31. +0 −8 jaxws/src/it/java/org/wildfly/swarm/examples/jaxws/ClientIT.java
  32. +6 −15 ...jaxrs-cdi/jpa-jaxrs-cdi-shrinkwrap/src/main/java/org/wildfly/swarm/examples/jpajaxrscdi/Main.java
  33. +6 −14 jpa/jpa-shrinkwrap/src/main/java/org/wildfly/swarm/examples/jpa/shrinkwrap/Main.java
  34. +3 −2 jsf/jsf-shrinkwrap/src/main/java/org/wildfly/swarm/examples/jsf/shrinkwrap/Main.java
  35. +3 −2 ...nsink-html5-mobile/src/main/java/org/jboss/as/quickstarts/html5_mobile/data/MemberRepository.java
  36. +3 −2 ...-html5-mobile/src/main/java/org/jboss/as/quickstarts/html5_mobile/service/MemberRegistration.java
  37. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/action-black.svg
  38. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/action-white.svg
  39. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/alert-black.svg
  40. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/alert-white.svg
  41. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-d-black.svg
  42. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-d-l-black.svg
  43. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-d-l-white.svg
  44. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-d-r-black.svg
  45. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-d-r-white.svg
  46. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-d-white.svg
  47. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-l-black.svg
  48. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-l-white.svg
  49. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-r-black.svg
  50. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-r-white.svg
  51. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-u-black.svg
  52. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-u-l-black.svg
  53. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-u-l-white.svg
  54. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-u-r-black.svg
  55. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-u-r-white.svg
  56. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/arrow-u-white.svg
  57. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/audio-black.svg
  58. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/audio-white.svg
  59. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/back-black.svg
  60. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/back-white.svg
  61. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/bars-black.svg
  62. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/bars-white.svg
  63. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/bullets-black.svg
  64. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/bullets-white.svg
  65. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/calendar-black.svg
  66. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/calendar-white.svg
  67. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/camera-black.svg
  68. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/camera-white.svg
  69. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/carat-d-black.svg
  70. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/carat-d-white.svg
  71. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/carat-l-black.svg
  72. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/carat-l-white.svg
  73. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/carat-r-black.svg
  74. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/carat-r-white.svg
  75. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/carat-u-black.svg
  76. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/carat-u-white.svg
  77. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/check-black.svg
  78. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/check-white.svg
  79. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/clock-black.svg
  80. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/clock-white.svg
  81. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/cloud-black.svg
  82. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/cloud-white.svg
  83. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/comment-black.svg
  84. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/comment-white.svg
  85. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/delete-black.svg
  86. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/delete-white.svg
  87. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/edit-black.svg
  88. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/edit-white.svg
  89. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/eye-black.svg
  90. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/eye-white.svg
  91. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/forbidden-black.svg
  92. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/forbidden-white.svg
  93. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/forward-black.svg
  94. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/forward-white.svg
  95. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/gear-black.svg
  96. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/gear-white.svg
  97. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/grid-black.svg
  98. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/grid-white.svg
  99. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/heart-black.svg
  100. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/heart-white.svg
  101. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/home-black.svg
  102. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/home-white.svg
  103. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/info-black.svg
  104. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/info-white.svg
  105. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/location-black.svg
  106. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/location-white.svg
  107. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/lock-black.svg
  108. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/lock-white.svg
  109. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/mail-black.svg
  110. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/mail-white.svg
  111. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/minus-black.svg
  112. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/minus-white.svg
  113. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/navigation-black.svg
  114. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/navigation-white.svg
  115. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/phone-black.svg
  116. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/phone-white.svg
  117. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/plus-black.svg
  118. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/plus-white.svg
  119. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/power-black.svg
  120. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/power-white.svg
  121. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/recycle-black.svg
  122. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/recycle-white.svg
  123. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/refresh-black.svg
  124. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/refresh-white.svg
  125. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/search-black.svg
  126. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/search-white.svg
  127. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/shop-black.svg
  128. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/shop-white.svg
  129. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/star-black.svg
  130. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/star-white.svg
  131. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/tag-black.svg
  132. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/tag-white.svg
  133. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/user-black.svg
  134. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/user-white.svg
  135. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/video-black.svg
  136. +1 −1 kitchensink-html5-mobile/src/main/webapp/css/images/icons-svg/video-white.svg
  137. +11 −11 logstash/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/EventsResource.java
  138. +0 −1 logstash/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/Main.java
  139. +2 −2 ...sh/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/TimeFallbackHandler.java
  140. +0 −2 logstash/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/TimeService.java
  141. +0 −1 logstash/time/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/time/Main.java
  142. +4 −3 logstash/time/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/time/TimeResource.java
  143. +6 −5 ...ging/messaging-clustering/src/main/java/org/wildfly/swarm/examples/messaging/clustering/Main.java
  144. +5 −5 messaging/messaging-mdb/src/main/java/org/wildfly/swarm/examples/messaging/mdb/Main.java
  145. +7 −7 messaging/messaging-simple/src/main/java/org/wildfly/swarm/examples/messaging/Main.java
  146. +0 −1 msc/src/main/java/org/wildfly/swarm/examples/msc/Main.java
  147. +2 −2 msc/src/main/java/org/wildfly/swarm/examples/msc/MyServiceActivator.java
  148. +1 −8 ...e-adapter-deployment/src/it/java/org/wildfly/swarm/examples/rar/deployment/ResourceAdapterIT.java
  149. +5 −5 ...ter/resource-adapter-deployment/src/main/java/org/wildfly/swarm/examples/rar/deployment/Main.java
  150. +2 −1 ribbon-consul/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/CORSFilter.java
  151. +13 −10 ...-consul/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/EventsResource.java
  152. +3 −2 ribbon-consul/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/Main.java
  153. +2 −2 ...ul/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/TimeFallbackHandler.java
  154. +0 −2 ribbon-consul/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/TimeService.java
  155. +4 −3 ribbon-consul/frontend/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/frontend/Main.java
  156. +2 −1 ribbon-consul/time/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/time/CORSFilter.java
  157. +3 −2 ribbon-consul/time/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/time/Main.java
  158. +4 −3 ribbon-consul/time/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/time/TimeResource.java
  159. +2 −1 ribbon-secured/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/CORSFilter.java
  160. +8 −10 ...secured/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/EventsResource.java
  161. +0 −1 ribbon-secured/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/Main.java
  162. +2 −2 ...ed/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/TimeFallbackHandler.java
  163. +0 −3 ...on-secured/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/TimeService.java
  164. +0 −1 ribbon-secured/test/src/it/java/org/wildfly/swarm/it/ribbon/RibbonIT.java
  165. +2 −1 ribbon-secured/time/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/time/CORSFilter.java
  166. +0 −1 ribbon-secured/time/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/time/Main.java
  167. +4 −3 ribbon-secured/time/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/time/TimeResource.java
  168. +2 −1 ribbon/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/CORSFilter.java
  169. +13 −10 ribbon/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/EventsResource.java
  170. +4 −3 ribbon/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/Main.java
  171. +2 −2 ...on/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/TimeFallbackHandler.java
  172. +0 −2 ribbon/events/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/events/TimeService.java
  173. +5 −4 ribbon/frontend/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/frontend/Main.java
  174. +2 −1 ribbon/time/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/time/CORSFilter.java
  175. +4 −3 ribbon/time/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/time/Main.java
  176. +4 −3 ribbon/time/src/main/java/org/wildfly/swarm/examples/netflix/ribbon/time/TimeResource.java
  177. +24 −33 security/jaas/basic/src/main/java/org/wildfly/swarm/examples/jaas/basic/Main.java
  178. +10 −19 security/jaas/form/src/main/java/org/wildfly/swarm/examples/jaas/form/Main.java
  179. +0 −1 spring-boot/spring-boot-sample-actuator/src/main/java/sample/actuator/SampleController.java
  180. +3 −3 static/static-shrinkwrap/src/main/java/org/wildfly/swarm/examples/staticcontent/Main.java
  181. +8 −12 transactions/transactions-shrinkwrap/src/main/java/org/wildfly/swarm/examples/transactions/Main.java
  182. +0 −2 vaadin/src/it/java/org/wildfly/swarm/it/vaadin/VaadinApplicationIT.java
  183. +2 −2 vaadin/src/main/java/org/wildfly/swarm/examples/vaadin/VaadinUI.java
  184. +0 −2 vertx/src/main/java/org/wildfly/swarm/examples/vertx/Main.java
  185. +0 −2 vertx/src/main/java/org/wildfly/swarm/examples/vertx/MyEndpoint.java
  186. +0 −4 vertx/src/main/java/org/wildfly/swarm/examples/vertx/MyListener.java
@@ -23,7 +23,7 @@
package org.wildfly.swarm.examples.arjuna;
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.transactions.TransactionsFraction;
@@ -33,22 +33,21 @@
public class Main {
public static void main(String[] args) throws Exception {
- Container container = new Container();
+ Swarm swarm = new Swarm();
- /*
- * Use specific TransactionFraction even though it doesn't do
- * any more than the default one - for now.
- */
+ // Use specific TransactionFraction even though it doesn't do
+ // any more than the default one - for now.
- container.fraction(TransactionsFraction.createDefaultFraction());
+
+ swarm.fraction(TransactionsFraction.createDefaultFraction());
// Start the container
JAXRSArchive appDeployment = ShrinkWrap.create(JAXRSArchive.class);
appDeployment.addResource(MyResource.class);
- container.start();
- container.deploy(appDeployment);
+ swarm.start();
+ swarm.deploy(appDeployment);
}
}
@@ -22,20 +22,18 @@
package org.wildfly.swarm.examples.arjuna;
+import java.util.Hashtable;
+
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
-import java.util.Hashtable;
-
+import com.arjuna.ats.arjuna.AtomicAction;
import com.arjuna.ats.arjuna.common.Uid;
import com.arjuna.ats.arjuna.common.arjPropertyManager;
-import com.arjuna.ats.arjuna.AtomicAction;
import com.arjuna.ats.arjuna.coordinator.CheckedAction;
import com.arjuna.ats.arjuna.coordinator.CheckedActionFactory;
-import javax.naming.InitialContext;
-
/**
* @author nmcl
*/
@@ -23,7 +23,7 @@
package org.wildfly.swarm.examples.stm;
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.transactions.TransactionsFraction;
@@ -33,24 +33,21 @@
public class Main {
public static void main(String[] args) throws Exception {
- Container container = new Container();
+ Swarm swarm = new Swarm();
- /*
- * Use specific TransactionFraction even though it doesn't do
- * any more than the default one - for now.
- */
-
- container.fraction(TransactionsFraction.createDefaultFraction());
-
- // Start the container
+ // Use specific TransactionFraction even though it doesn't do
+ // any more than the default one - for now.
+ swarm.fraction(TransactionsFraction.createDefaultFraction());
JAXRSArchive appDeployment = ShrinkWrap.create(JAXRSArchive.class);
appDeployment.addResource(MyResource.class);
- appDeployment.addAllDependencies();
- appDeployment.addPackage("org.wildfly.swarm.examples.stm");
+ appDeployment.addAllDependencies();
+ appDeployment.addPackage("org.wildfly.swarm.examples.stm");
+
+ // Start the container
- container.start();
- container.deploy(appDeployment);
+ swarm.start();
+ swarm.deploy(appDeployment);
}
}
@@ -26,15 +26,9 @@
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
-import java.util.Hashtable;
-
-import com.arjuna.ats.arjuna.common.Uid;
import com.arjuna.ats.arjuna.AtomicAction;
import org.jboss.stm.Container;
-import com.arjuna.ats.arjuna.AtomicAction;
-import com.arjuna.ats.arjuna.ObjectModel;
-
/**
* @author nmcl
*/
@@ -16,19 +16,19 @@
package org.wildfly.swarm.examples.stm;
-import org.jboss.stm.annotations.Transactional;
import org.jboss.stm.annotations.ReadLock;
import org.jboss.stm.annotations.State;
+import org.jboss.stm.annotations.Transactional;
import org.jboss.stm.annotations.WriteLock;
-
+
@Transactional
public class SampleLockable implements Sample
{
public SampleLockable (int init)
{
_isState = init;
}
-
+
@ReadLock
public int value ()
{
@@ -40,7 +40,7 @@ public void increment ()
{
_isState++;
}
-
+
@WriteLock
public void decrement ()
{
@@ -19,20 +19,20 @@
*/
package org.wildflyswarm.examples.camel.activemq;
-import static org.fest.assertions.Assertions.assertThat;
-
import org.jboss.arquillian.drone.api.annotation.Drone;
import org.jboss.arquillian.junit.Arquillian;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.WebDriver;
+import static org.fest.assertions.Assertions.assertThat;
+
@RunWith(Arquillian.class)
public class CamelActiveMQIT {
@Drone
WebDriver browser;
-
+
@Test
public void testFileToActiveMQRoute() throws Exception {
@@ -19,11 +19,11 @@
*/
package org.wildfly.swarm.examples.camel.cdi;
-import org.wildfly.swarm.container.Container;
+import org.wildfly.swarm.Swarm;
public class Main {
public static void main(String... args) throws Exception {
// start with eager HTTP ports
- new Container().start(true).deploy();
+ new Swarm().start(true).deploy();
}
}
@@ -19,11 +19,12 @@
*/
package org.wildfly.swarm.examples.camel.cxf.jaxrs;
+import org.wildfly.swarm.Swarm;
import org.wildfly.swarm.container.Container;
public class Main {
public static void main(String... args) throws Exception {
// start with eager HTTP ports
- new Container().start(true).deploy();
+ new Swarm().start(true).deploy();
}
}
@@ -19,11 +19,11 @@
*/
package org.wildfly.swarm.examples.camel.cxf.jaxws;
-import org.wildfly.swarm.container.Container;
+import org.wildfly.swarm.Swarm;
public class Main {
public static void main(String... args) throws Exception {
// start with eager HTTP ports
- new Container().start(true).deploy();
+ new Swarm().start(true).deploy();
}
}
@@ -19,11 +19,11 @@
*/
package org.wildfly.swarm.examples.camel.jms;
-import org.wildfly.swarm.container.Container;
+import org.wildfly.swarm.Swarm;
public class Main {
public static void main(String... args) throws Exception {
// start with eager HTTP ports
- new Container().start(true).deploy();
+ new Swarm().start(true).deploy();
}
}
@@ -19,15 +19,16 @@
*/
package org.wildfly.swarm.examples.camel.jpa.model;
+import java.io.Serializable;
+import java.util.Date;
+
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
-import java.io.Serializable;
-import java.util.Date;
@XmlRootElement(name = "customer")
@XmlAccessorType(XmlAccessType.FIELD)
@@ -20,20 +20,19 @@
package org.wildfly.swarm.examples.camel.mail;
import org.wildfly.swarm.Swarm;
-import org.wildfly.swarm.container.Container;
import org.wildfly.swarm.mail.MailFraction;
public class Main {
public static void main(String... args) throws Exception {
MailFraction fraction = MailFraction.defaultFraction();
- Container container = new Container();
+ Swarm swarm = new Swarm();
// Configure mock mail server SMTP session
- container.fraction(fraction.smtpServer("greenmail", s -> s.host("localhost").port("10110").username("user1@localhost").password("password")));
+ swarm.fraction(fraction.smtpServer("greenmail", s -> s.host("localhost").port("10110").username("user1@localhost").password("password")));
// Deploy mock mail server
- container.start(true);
- container.deploy(Swarm.artifact("com.icegreen:greenmail-webapp:war:1.4.1"));
- container.deploy();
+ swarm.start(true);
+ swarm.deploy(Swarm.artifact("com.icegreen:greenmail-webapp:war:1.4.1"));
+ swarm.deploy();
}
}
@@ -19,11 +19,11 @@
*/
package org.wildfly.swarm.examples.camel.swagger;
-import org.wildfly.swarm.container.Container;
+import org.wildfly.swarm.Swarm;
public class Main {
public static void main(String... args) throws Exception {
// start with eager HTTP ports
- new Container().start(true).deploy();
+ new Swarm().start(true).deploy();
}
}
@@ -2,10 +2,8 @@
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.wildfly.swarm.Swarm;
-import org.wildfly.swarm.container.Container;
import org.wildfly.swarm.datasources.DatasourceArchive;
import org.wildfly.swarm.jaxrs.JAXRSArchive;
-import org.wildfly.swarm.spi.api.JARArchive;
/**
* @author Bob McWhirter
@@ -14,13 +12,13 @@
public static void main(String[] args) throws Exception {
- Container container = new Container();
+ Swarm swarm = new Swarm();
- container.start();
+ swarm.start();
// Create a JDBC driver deployment using maven groupId:artifactId
// The version is resolved from your pom.xml's <dependency>
- container.deploy(Swarm.artifact("com.h2database:h2", "h2"));
+ swarm.deploy(Swarm.artifact("com.h2database:h2", "h2"));
// Create a DS deployment
DatasourceArchive dsArchive = ShrinkWrap.create(DatasourceArchive.class);
@@ -32,13 +30,13 @@ public static void main(String[] args) throws Exception {
});
// Deploy the datasource
- container.deploy(dsArchive);
+ swarm.deploy(dsArchive);
JAXRSArchive appDeployment = ShrinkWrap.create(JAXRSArchive.class);
appDeployment.addResource(MyResource.class);
// Deploy your app
- container.deploy(appDeployment);
+ swarm.deploy(appDeployment);
}
}
Oops, something went wrong.

0 comments on commit e42738f

Please sign in to comment.