/** * Get the instance * * @return the actions */ public static ServiceControllerContextActions getLifecycleOnly() { if (lifecycleOnly == null) { Map<ControllerState, ControllerContextAction> actions = new HashMap<ControllerState, ControllerContextAction>(); actions.put(ControllerState.INSTANTIATED, new OnlyUnregisterAction()); actions.put(ControllerState.CREATE, new CreateDestroyLifecycleAction()); actions.put(ControllerState.START, new StartStopLifecycleAction()); lifecycleOnly = new ServiceControllerContextActions(actions); } return lifecycleOnly; }
/** * Get the instance * * @return the actions */ public static ServiceControllerContextActions getLifecycleOnly() { if (lifecycleOnly == null) { Map<ControllerState, ControllerContextAction> actions = new HashMap<ControllerState, ControllerContextAction>(); actions.put(ControllerState.INSTANTIATED, new OnlyUnregisterAction()); actions.put(ControllerState.CREATE, new CreateDestroyLifecycleAction()); actions.put(ControllerState.START, new StartStopLifecycleAction()); lifecycleOnly = new ServiceControllerContextActions(actions); } return lifecycleOnly; }
/** * Get the instance * * @return the actions */ public static ServiceControllerContextActions getInstance() { if (instance == null) { Map<ControllerState, ControllerContextAction> actions = new HashMap<ControllerState, ControllerContextAction>(); actions.put(ControllerState.DESCRIBED, new DescribeAction()); actions.put(ControllerState.INSTANTIATED, new InstantiateAction()); actions.put(ControllerState.CONFIGURED, new ConfigureAction()); actions.put(ControllerState.CREATE, new CreateDestroyLifecycleAction()); actions.put(ControllerState.START, new StartStopLifecycleAction()); actions.put(ControllerState.INSTALLED, new InstallAction()); instance = new ServiceControllerContextActions(actions); } return instance; }
/** * Get the instance * * @return the actions */ public static ServiceControllerContextActions getInstance() { if (instance == null) { Map<ControllerState, ControllerContextAction> actions = new HashMap<ControllerState, ControllerContextAction>(); actions.put(ControllerState.DESCRIBED, new DescribeAction()); actions.put(ControllerState.INSTANTIATED, new InstantiateAction()); actions.put(ControllerState.CONFIGURED, new ConfigureAction()); actions.put(ControllerState.CREATE, new CreateDestroyLifecycleAction()); actions.put(ControllerState.START, new StartStopLifecycleAction()); actions.put(ControllerState.INSTALLED, new InstallAction()); instance = new ServiceControllerContextActions(actions); } return instance; }