@Override public void init(Scope scope, ParticipantConfig participantConfig) throws InitializationException, InterruptedException { super.init(scope, participantConfig); try { RPCHelper.registerInterface(AuthenticatedRequestable.class, this, server); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override public void init(ScopeType.Scope scope) throws InitializationException, InterruptedException { try { super.init(Registries.getUnitRegistry(true).getUnitConfigByScope(scope)); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override public void init(final UnitConfig config) throws InitializationException, InterruptedException { try { if (config == null) { throw new NotAvailableException("config"); } if (!config.hasId()) { throw new NotAvailableException("config.id"); } if (config.getId().isEmpty()) { throw new NotAvailableException("Field config.id is empty!"); } if (!config.hasLabel()) { throw new NotAvailableException("config.label"); } if (config.getLabel().isEmpty()) { throw new NotAvailableException("Field config.label is emty!"); } super.init(config); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }