Search in sources :

Example 41 with AppConstants

use of nl.nn.adapterframework.util.AppConstants in project iaf by ibissource.

the class JdbcTableMessageBrowser method setOperationControls.

@Override
protected void setOperationControls() {
    super.setOperationControls();
    AppConstants ac = AppConstants.getInstance();
    useIndexHint = ac.getBoolean(PROPERTY_USE_INDEX_HINT, false);
    useFirstRowsHint = ac.getBoolean(PROPERTY_USE_FIRST_ROWS_HINT, true);
}
Also used : AppConstants(nl.nn.adapterframework.util.AppConstants)

Example 42 with AppConstants

use of nl.nn.adapterframework.util.AppConstants in project iaf by ibissource.

the class DatabaseMigratorBase method getDatasourceName.

public String getDatasourceName() {
    if (datasourceName == null) {
        AppConstants appConstants = AppConstants.getInstance(configuration.getClassLoader());
        datasourceName = appConstants.getString("jdbc.migrator.datasource", appConstants.getString("jdbc.migrator.dataSource", JndiDataSourceFactory.GLOBAL_DEFAULT_DATASOURCE_NAME));
    }
    return datasourceName;
}
Also used : AppConstants(nl.nn.adapterframework.util.AppConstants)

Aggregations

AppConstants (nl.nn.adapterframework.util.AppConstants)42 IbisContext (nl.nn.adapterframework.configuration.IbisContext)7 File (java.io.File)6 ConfigurationException (nl.nn.adapterframework.configuration.ConfigurationException)6 IOException (java.io.IOException)4 ArrayList (java.util.ArrayList)3 FileWriter (java.io.FileWriter)2 URL (java.net.URL)2 Enumeration (java.util.Enumeration)2 ServletContext (javax.servlet.ServletContext)2 ServletException (javax.servlet.ServletException)2 GET (javax.ws.rs.GET)2 Path (javax.ws.rs.Path)2 Produces (javax.ws.rs.Produces)2 InputStream (java.io.InputStream)1 OutputStream (java.io.OutputStream)1 Date (java.util.Date)1 HashMap (java.util.HashMap)1 ZipEntry (java.util.zip.ZipEntry)1 ZipInputStream (java.util.zip.ZipInputStream)1