Tabnine Logo
SuperProperties.caseInsensitive
Code IndexAdd Tabnine to your IDE (free)

How to use
caseInsensitive
method
in
org.apache.openejb.util.SuperProperties

Best Java code snippets using org.apache.openejb.util.SuperProperties.caseInsensitive (Showing top 10 results out of 315)

origin: org.apache.tomee/openejb-core

private static Properties asProperties(final String definition) throws IOException {
  final SuperProperties properties = new SuperProperties();
  properties.caseInsensitive(true);
  properties.putAll(IO.readProperties(IO.read(definition), new Properties()));
  return properties;
}
origin: org.apache.openejb/openejb-core

private static Properties asProperties(final String definition) throws IOException {
  final SuperProperties properties = new SuperProperties();
  properties.caseInsensitive(true);
  properties.putAll(IO.readProperties(IO.read(definition), new Properties()));
  return properties;
}
origin: org.apache.openejb/tomee-jdbc

@Override
public CommonDataSource pool(final String name, final String driver, final Properties properties) {
  final Properties converted = new Properties();
  converted.setProperty("name", name);
  final SuperProperties prop = new SuperProperties().caseInsensitive(true);
  prop.putAll(properties);
  updateProperties(prop, converted, driver);
  final PoolConfiguration config = build(PoolProperties.class, converted);
  final String xa = String.class.cast(properties.remove("XaDataSource"));
  if (xa != null) {
    final XADataSource xaDs = XADataSourceResource.proxy(Thread.currentThread().getContextClassLoader(), xa);
    final TomEEDataSource instance = new TomEEDataSource(config, name, xaDs);
    return build(TomEEDataSource.class, instance, converted);
  } else {
    final TomEEDataSource instance = new TomEEDataSource(config, name);
    return build(TomEEDataSource.class, instance, converted);
  }
}
origin: org.apache.openejb/tomee-jdbc

@Override
public DataSource pool(final String name, final DataSource ds, final Properties properties) {
  final Properties converted = new Properties();
  final SuperProperties prop = new SuperProperties().caseInsensitive(true);
  prop.putAll(properties);
  updateProperties(prop, converted, null);
  final PoolConfiguration config = build(PoolProperties.class, converted);
  config.setDataSource(ds);
  final ConnectionPool pool;
  try {
    pool = new ConnectionPool(config);
  } catch (final SQLException e) {
    throw new IllegalStateException(e);
  }
  return build(TomEEDataSource.class, new TomEEDataSource(config, pool, name), converted);
}
origin: com.tomitribe.tribestream/tribestream-metrics-core

@Override
public CommonDataSource pool(final String name, final String driver, final Properties properties) {
  if (!isMonitorDatabase()) {
    return super.pool(name, driver, properties);
  }
  final Properties converted = new Properties();
  converted.setProperty("name", name);
  final SuperProperties prop = new SuperProperties().caseInsensitive(true);
  prop.putAll(properties);
  convertProperties(driver, converted, prop);
  final PoolConfiguration config = build(PoolProperties.class, converted);
  if (config.getName() == null) {
    config.setName(name);
  }
  final TomEEDataSource ds = build(TribestreamDataSource.class, new TribestreamDataSource(config, name), converted);
  final String xa = String.class.cast(properties.remove("XaDataSource"));
  if (xa != null) {
    cleanProperty(ds, "xadatasource");
    final XADataSource xaDs = XADataSourceResource.proxy(Thread.currentThread().getContextClassLoader(), xa);
    ds.setDataSource(xaDs);
  }
  return ds;
}
origin: org.apache.tomee/openejb-core

final Properties overrides = new SuperProperties().caseInsensitive(true);
overrides.putAll(base);
overrides.putAll(module.getProperties());
  final SuperProperties properties = new SuperProperties().caseInsensitive(true);
origin: org.apache.openejb/openejb-core

final Properties overrides = new SuperProperties().caseInsensitive(true);
overrides.putAll(base);
overrides.putAll(module.getProperties());
  final SuperProperties properties = new SuperProperties().caseInsensitive(true);
origin: com.tomitribe.tribestream/tribestream-metrics-core

@Override
public DataSource pool(final String name, final DataSource ds, final Properties properties) {
  if (!isMonitorDatabase()) {
    return super.pool(name, ds, properties);
  }
  final Properties converted = new Properties();
  final SuperProperties prop = new SuperProperties().caseInsensitive(true);
  prop.putAll(properties);
  convertProperties(null, converted, prop);
  final PoolConfiguration config = build(PoolProperties.class, converted);
  config.setDataSource(ds);
  final ConnectionPool pool;
  try {
    pool = new ConnectionPool(config);
  } catch (final SQLException e) {
    throw new IllegalStateException(e);
  }
  if (config.getName() == null) {
    config.setName(name);
  }
  return build(TribestreamDataSource.class, new TribestreamDataSource(config, pool, name), converted);
}
origin: org.apache.openejb/openejb-core

final Properties props = new SuperProperties().caseInsensitive(true);
origin: org.apache.tomee/openejb-core

final Properties props = new SuperProperties().caseInsensitive(true);
org.apache.openejb.utilSuperPropertiescaseInsensitive

Javadoc

Are lookups case insensitive?

Popular methods of SuperProperties

  • <init>
    Constructs a new Properties object using the specified default properties.
  • entrySet
    Returns an unmodifiable view of the entries.
  • getProperty
  • putAll
  • containsKey
  • decodeEscapeChar
  • decodeNextCharacter
  • dumpComment
  • dumpString
  • get
  • getAttributes
    Searches for the attributes associated with the specified property. If the property is not found, lo
  • getComment
    Searches for the comment associated with the specified property. If the property is not found, look
  • getAttributes,
  • getComment,
  • getDocumentBuilder,
  • isEmpty,
  • keySet,
  • keys,
  • normalize,
  • propertyNames,
  • put

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • getContentResolver (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Collectors (java.util.stream)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now