public void init(final String label, final ScopeProvider location) throws InitializationException, InterruptedException { try { init(ScopeGenerator.generateScope(label, getClass().getSimpleName(), location.getScope())); } catch (CouldNotPerformException | NullPointerException ex) { throw new InitializationException(this, ex); } }
/** * {@inheritDoc} * * @param scope * @throws org.openbase.jul.exception.InitializationException * @throws java.lang.InterruptedException */ @Override public void init(final String scope) throws InitializationException, InterruptedException { try { this.init(ScopeGenerator.generateScope(scope)); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Deprecated public void init(final String label, final ScopeProvider location) throws InitializationException, InterruptedException { try { init(ScopeGenerator.generateScope(label, getDataClass().getSimpleName(), location.getScope())); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
/** * @param label * @param type * @param location * @throws InitializationException * @throws InterruptedException */ public void init(final String label, final String type, final ScopeProvider location) throws InitializationException, InterruptedException { try { init(ScopeGenerator.generateScope(label, type, location.getScope())); } catch (CouldNotPerformException | NullPointerException ex) { throw new InitializationException(this, ex); } }
throw new NotAvailableException("UnitScope"); return getUnitByScope(ScopeGenerator.generateScope(scope), waitForData); } catch (CouldNotPerformException ex) { throw new NotAvailableException("Unit[" + scope + "]", ex);