131132133134135136137138
state = State.CREATED; try { doConfigure(); } catch (Exception ex) { throw new LifecycleException("Cannot configure container", ex); } }
154155156157158159160161
if (state == State.CREATED || state == State.STOPPED) { doStart(); state = State.STARTED; } } catch (Exception ex) { throw new LifecycleException("Cannot start container", ex); } }
168169170171172173174175
doStop(); destroyProcess(); state = State.STOPPED; } } catch (Exception ex) { throw new LifecycleException("Cannot stop container", ex); } }
185186187188189190191192193194
} } try { doDestroy(); } catch (Exception ex) { throw new LifecycleException("Cannot destroy container", ex); } finally { state = State.DESTROYED; } }