1 17 package org.apache.servicemix.beanflow; 18 19 import java.util.List ; 20 21 26 public class ActivityHelper { 27 28 31 public static void start(Activity... activities) { 32 for (Activity activity : activities) { 33 activity.start(); 34 } 35 } 36 37 40 public static void start(List <Activity> activities) { 41 for (Activity activity : activities) { 42 activity.start(); 43 } 44 } 45 46 49 public static void stop(Activity... activities) { 50 for (Activity activity : activities) { 51 activity.stop(); 52 } 53 } 54 55 58 public static void stop(List <Activity> activities) { 59 for (Activity activity : activities) { 60 activity.stop(); 61 } 62 } 63 } | Popular Tags |