- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Connection c =
DataSource dataSource;dataSource.getConnection()
String url;DriverManager.getConnection(url)
IdentityDatabaseUtil.getDBConnection()
- Smart code suggestions by Codota
}
@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); } }