567891011121314
import com.leansoft.mxjc.module.ModuleName; public class WSModuleFactory { public static WSClientModule getModule(ModuleName name) { if (name == ModuleName.NANO) { return new NanoWSClientModule(); } else { return new PicoWSClientModule(); } }