- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {DateTime d =
new DateTime()
DateTimeFormatter formatter;String text;formatter.parseDateTime(text)
Object instant;new DateTime(instant)
- Smart code suggestions by Codota
}
@Override public void init() { dsm.getAllDataSources().entrySet().forEach((entry) -> loadProvider(entry.getKey(), entry.getValue())); }
@Override public void postInit(AppContext context) throws Throwable { DataSource defaultDataSource = dsm.tryGetDefaultDataSource(); Map<String,DataSource> datasources = dsm.getAllDataSources(); boolean foundPrimary = false; for(Entry<String,DataSource> entry : datasources.entrySet()){ boolean primary = false; if(null != defaultDataSource && entry.getValue() == defaultDataSource){ primary = true; foundPrimary = true; } initBeans(entry.getKey(), entry.getValue(), primary); } if(!foundPrimary && null != defaultDataSource){ initBeans(DataSourceManager.DEFAULT_DATASOURCE_NAME, defaultDataSource, true); } }
Map<String,DataSource> dataSources = dataSourceManager.getAllDataSources();