public void init(FrameworkListener... listeners) throws BundleException { if (listeners != null) { initListeners.addAll(Arrays.asList(listeners)); } try { ((SystemModule) getModule()).init(); } finally { if (!initListeners.isEmpty()) { flushFrameworkEvents(); removeInitListeners(); } } }
public void init(FrameworkListener... listeners) throws BundleException { if (listeners != null) { initListeners.addAll(Arrays.asList(listeners)); } try { ((SystemModule) getModule()).init(); } finally { if (!initListeners.isEmpty()) { flushFrameworkEvents(); removeInitListeners(); } } }
@Override public void start(StartOptions... options) throws BundleException { // make sure to init if needed init(); // Always transient super.start(StartOptions.TRANSIENT, StartOptions.USE_ACTIVATION_POLICY); getRevisions().getContainer().adaptor.publishContainerEvent(ContainerEvent.STARTED, this, null); }
@Override public void start(StartOptions... options) throws BundleException { // make sure to init if needed init(); // Always transient super.start(StartOptions.TRANSIENT, StartOptions.USE_ACTIVATION_POLICY); getRevisions().getContainer().adaptor.publishContainerEvent(ContainerEvent.STARTED, this, null); }
@Override public void start(StartOptions... options) throws BundleException { // make sure to init if needed init(); // Always transient super.start(StartOptions.TRANSIENT, StartOptions.USE_ACTIVATION_POLICY); getRevisions().getContainer().adaptor.publishContainerEvent(ContainerEvent.STARTED, this, null); }
@Override public void start(StartOptions... options) throws BundleException { // make sure to init if needed init(); // Always transient super.start(StartOptions.TRANSIENT, StartOptions.USE_ACTIVATION_POLICY); getRevisions().getContainer().adaptor.publishContainerEvent(ContainerEvent.STARTED, this, null); }
@Override public void start(StartOptions... options) throws BundleException { // make sure to init if needed init(); // Always transient super.start(StartOptions.TRANSIENT, StartOptions.USE_ACTIVATION_POLICY); getRevisions().getContainer().adaptor.publishContainerEvent(ContainerEvent.STARTED, this, null); }
@Override public void start(StartOptions... options) throws BundleException { // make sure to init if needed init(); // Always transient super.start(StartOptions.TRANSIENT, StartOptions.USE_ACTIVATION_POLICY); getRevisions().getContainer().adaptor.publishContainerEvent(ContainerEvent.STARTED, this, null); }
public void init(FrameworkListener... listeners) throws BundleException { if (listeners != null) { if (getEquinoxContainer().getConfiguration().getDebug().DEBUG_SYSTEM_BUNDLE) { Debug.println("Initializing framework with framework listeners: " + listeners); //$NON-NLS-1$ } initListeners.addAll(Arrays.asList(listeners)); } else { if (getEquinoxContainer().getConfiguration().getDebug().DEBUG_SYSTEM_BUNDLE) { Debug.println("Initializing framework with framework no listeners"); //$NON-NLS-1$ } } try { ((SystemModule) getModule()).init(); } finally { if (!initListeners.isEmpty()) { getEquinoxContainer().getEventPublisher().flushFrameworkEvents(); removeInitListeners(); } } }
public void init(FrameworkListener... listeners) throws BundleException { if (listeners != null) { if (getEquinoxContainer().getConfiguration().getDebug().DEBUG_SYSTEM_BUNDLE) { Debug.println("Initializing framework with framework listeners: " + listeners); //$NON-NLS-1$ } initListeners.addAll(Arrays.asList(listeners)); } else { if (getEquinoxContainer().getConfiguration().getDebug().DEBUG_SYSTEM_BUNDLE) { Debug.println("Initializing framework with framework no listeners"); //$NON-NLS-1$ } } try { ((SystemModule) getModule()).init(); } finally { if (!initListeners.isEmpty()) { getEquinoxContainer().getEventPublisher().flushFrameworkEvents(); removeInitListeners(); } } }
public void init(FrameworkListener... listeners) throws BundleException { if (listeners != null) { if (getEquinoxContainer().getConfiguration().getDebug().DEBUG_SYSTEM_BUNDLE) { Debug.println("Initializing framework with framework listeners: " + listeners); //$NON-NLS-1$ } initListeners.addAll(Arrays.asList(listeners)); } else { if (getEquinoxContainer().getConfiguration().getDebug().DEBUG_SYSTEM_BUNDLE) { Debug.println("Initializing framework with framework no listeners"); //$NON-NLS-1$ } } try { ((SystemModule) getModule()).init(); } finally { if (!initListeners.isEmpty()) { getEquinoxContainer().getEventPublisher().flushFrameworkEvents(); removeInitListeners(); } } }
public void init(FrameworkListener... listeners) throws BundleException { if (listeners != null) { if (getEquinoxContainer().getConfiguration().getDebug().DEBUG_SYSTEM_BUNDLE) { Debug.println("Initializing framework with framework listeners: " + listeners); //$NON-NLS-1$ } initListeners.addAll(Arrays.asList(listeners)); } else { if (getEquinoxContainer().getConfiguration().getDebug().DEBUG_SYSTEM_BUNDLE) { Debug.println("Initializing framework with framework no listeners"); //$NON-NLS-1$ } } try { ((SystemModule) getModule()).init(); } finally { if (!initListeners.isEmpty()) { getEquinoxContainer().getEventPublisher().flushFrameworkEvents(); removeInitListeners(); } } }
/** * 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; } }