/** * Restarts the module container. * @see Framework#update() * @throws BundleException */ public void update() throws BundleException { getContainer().checkAdminPermission(getBundle(), AdminPermission.LIFECYCLE); State previousState; lockStateChange(ModuleEvent.UPDATED); try { previousState = getState(); stop(); } finally { unlockStateChange(ModuleEvent.UPDATED); } // would publish an updated event here but the listener services are down switch (previousState) { case STARTING : init(); break; case ACTIVE : start(); default : break; } }
/** * Restarts the module container. * @see Framework#update() * @throws BundleException */ public void update() throws BundleException { getContainer().checkAdminPermission(getBundle(), AdminPermission.LIFECYCLE); State previousState; lockStateChange(ModuleEvent.UPDATED); try { previousState = getState(); stop(); } finally { unlockStateChange(ModuleEvent.UPDATED); } // would publish an updated event here but the listener services are down switch (previousState) { case STARTING : init(); break; case ACTIVE : start(); default : break; } }
/** * Restarts the module container. * @see Framework#update() * @throws BundleException */ public void update() throws BundleException { getContainer().checkAdminPermission(getBundle(), AdminPermission.LIFECYCLE); State previousState; lockStateChange(ModuleEvent.UPDATED); try { previousState = getState(); stop(); } finally { unlockStateChange(ModuleEvent.UPDATED); } // would publish an updated event here but the listener services are down switch (previousState) { case STARTING : init(); break; case ACTIVE : start(); default : break; } }
/** * Restarts the module container. * @see Framework#update() * @throws BundleException */ public void update() throws BundleException { getContainer().checkAdminPermission(getBundle(), AdminPermission.LIFECYCLE); State previousState; lockStateChange(ModuleEvent.UPDATED); try { previousState = getState(); stop(); } finally { unlockStateChange(ModuleEvent.UPDATED); } // would publish an updated event here but the listener services are down switch (previousState) { case STARTING : init(); break; case ACTIVE : start(); default : break; } }
/** * Restarts the module container. * @see Framework#update() * @throws BundleException */ public void update() throws BundleException { getContainer().checkAdminPermission(getBundle(), AdminPermission.LIFECYCLE); State previousState; lockStateChange(ModuleEvent.UPDATED); try { previousState = getState(); stop(); } finally { unlockStateChange(ModuleEvent.UPDATED); } // would publish an updated event here but the listener services are down switch (previousState) { case STARTING : init(); break; case ACTIVE : start(); default : break; } }
/** * Restarts the module container. * @see Framework#update() * @throws BundleException */ public void update() throws BundleException { getContainer().checkAdminPermission(getBundle(), AdminPermission.LIFECYCLE); State previousState; lockStateChange(ModuleEvent.UPDATED); try { previousState = getState(); stop(); } finally { unlockStateChange(ModuleEvent.UPDATED); } // would publish an updated event here but the listener services are down switch (previousState) { case STARTING : init(); break; case ACTIVE : start(); default : break; } }
lockStateChange(ModuleEvent.STARTED); lockedStarted = true; getContainer().getAdaptor().initBegin(); checkValid(); if (ACTIVE_SET.contains(getState())) getContainer().getAdaptor().initEnd(); if (lockedStarted) { unlockStateChange(ModuleEvent.STARTED);
lockStateChange(ModuleEvent.STARTED); lockedStarted = true; getContainer().getAdaptor().initBegin(); checkValid(); if (ACTIVE_SET.contains(getState())) getContainer().getAdaptor().initEnd(); if (lockedStarted) { unlockStateChange(ModuleEvent.STARTED);
lockStateChange(ModuleEvent.STARTED); lockedStarted = true; getContainer().getAdaptor().initBegin(); checkValid(); if (ACTIVE_SET.contains(getState())) getContainer().getAdaptor().initEnd(); if (lockedStarted) { unlockStateChange(ModuleEvent.STARTED);
lockStateChange(ModuleEvent.STARTED); lockedStarted = true; getContainer().getAdaptor().initBegin(); checkValid(); if (ACTIVE_SET.contains(getState())) getContainer().getAdaptor().initEnd(); if (lockedStarted) { unlockStateChange(ModuleEvent.STARTED);
lockStateChange(ModuleEvent.STARTED); try { getContainer().getAdaptor().initBegin(); lockedStarted = true; checkValid(); getContainer().getAdaptor().initEnd(); if (lockedStarted) { unlockStateChange(ModuleEvent.STARTED);
lockStateChange(ModuleEvent.STARTED); try { getContainer().getAdaptor().initBegin(); lockedStarted = true; checkValid(); getContainer().getAdaptor().initEnd(); if (lockedStarted) { unlockStateChange(ModuleEvent.STARTED);