1 28 29 package org.objectweb.util.launcher ; 30 31 import org.objectweb.util.trace.TraceSystem; 32 33 34 35 48 public class ModeFactory 49 { 50 57 public static Mode 58 create(String type) { 59 if (type.equals("normal")) 60 return new ModeNormal(); 61 if (type.equals("thread")) 62 return new ModeThread(); 63 if (type.equals("deamon")) 64 return new ModeDaemon(); 65 TraceSystem.get("launcher").warn("No Mode found for "+type); 66 return null; 67 } 68 } 69 | Popular Tags |