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

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

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

origin: org.apache.tomee/openejb-core

private void buildDestinationDefinition(final JndiConsumer consumer, final JMSDestinationDefinition definition) {
  final JMSDestination destination = new JMSDestination();
  destination.setName(definition.name());
  destination.setClassName(definition.className());
  destination.setInterfaceName(definition.interfaceName());
  destination.setResourceAdapter(definition.resourceAdapter());
  destination.setDestinationName(definition.destinationName());
  for (final String s : definition.properties()) {
    final int equal = s.indexOf('=');
    if (equal < s.length() - 1) {
      final SuperProperties props = new SuperProperties();
      try {
        props.load(new ByteArrayInputStream(s.getBytes()));
        for (final String key : props.stringPropertyNames()) {
          if (!key.isEmpty()) {
            destination.property(key, props.getProperty(key));
          }
        }
      } catch (final IOException e) {
        final String key = s.substring(0, equal).trim();
        final String value = s.substring(equal + 1).trim();
        destination.property(key, value);
      }
    } else {
      destination.property(s.trim(), "");
    }
  }
  consumer.getJMSDestination().add(destination);
}
origin: org.apache.tomee/openejb-core

try {
  props.load(new ByteArrayInputStream(s.getBytes()));
  for (final String key : props.stringPropertyNames()) {
    if (!key.isEmpty()) {
      connectionFactory.property(key, props.getProperty(key));
origin: org.apache.openejb/openejb-core

try {
  props.load(new ByteArrayInputStream(s.getBytes()));
  for (final String key : props.stringPropertyNames()) {
    if (!key.isEmpty()) {
      dataSource.property(key, props.getProperty(key));
origin: org.apache.tomee/openejb-core

try {
  props.load(new ByteArrayInputStream(s.getBytes()));
  for (final String key : props.stringPropertyNames()) {
    if (!key.isEmpty()) {
      dataSource.property(key, props.getProperty(key));
org.apache.openejb.utilSuperPropertiesstringPropertyNames

Popular methods of SuperProperties

  • <init>
    Constructs a new Properties object using the specified default properties.
  • caseInsensitive
  • 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
  • get,
  • getAttributes,
  • getComment,
  • getDocumentBuilder,
  • isEmpty,
  • keySet,
  • keys,
  • normalize,
  • propertyNames,
  • put

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Reference (javax.naming)
  • Best plugins for Eclipse
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