/** * {@inheritDoc} * * @param scope {@inheritDoc} * @throws org.openbase.jul.exception.InitializationException {@inheritDoc} * @throws java.lang.InterruptedException {@inheritDoc} */ @Override public void init(final rsb.Scope scope) throws InitializationException, InterruptedException { init(scope, RSBSharedConnectionConfig.getParticipantConfig()); }
/** * {@inheritDoc} * * @param scope {@inheritDoc} * @throws org.openbase.jul.exception.InitializationException {@inheritDoc} * @throws java.lang.InterruptedException {@inheritDoc} */ @Override public void init(final Scope scope) throws InitializationException, InterruptedException { init(scope, RSBSharedConnectionConfig.getParticipantConfig()); }
/** * Initialize the remote on a scope. * * @param scope the scope where the remote communicates * @throws InitializationException if the initialization fails * @throws InterruptedException if the initialization is interrupted */ @Override public void init(final String scope) throws InitializationException, InterruptedException { try { init(new rsb.Scope(scope)); } catch (CouldNotPerformException | NullPointerException ex) { throw new InitializationException(this, ex); } }
/** * {@inheritDoc} * * @param scope {@inheritDoc} * @param participantConfig {@inheritDoc} * @throws InitializationException {@inheritDoc} * @throws InterruptedException {@inheritDoc} */ @Override public void init(final rsb.Scope scope, final ParticipantConfig participantConfig) throws InitializationException, InterruptedException { try { init(ScopeTransformer.transform(scope), participantConfig); } catch (CouldNotTransformException ex) { throw new InitializationException(this, ex); } }
@Override public void init() throws InitializationException, InterruptedException { try { super.init(JPService.getProperty(jpScopePropery).getValue()); } catch (JPServiceException | CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
throw new CouldNotPerformException("Could not access remote!", ex); remote.init(JPService.getProperty(JPScope.class).getValue()); remote.activate(); Method remoteMethod = JPService.getProperty(JPRemoteMethod.class).getValue();