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

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

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

origin: org.apache.tomee/openejb-core

public String getProperty(final String name, final String defaultValue) {
  final Object result = get(name);
  String property = result instanceof String ? (String) result : null;
  if (property == null && defaults != null) {
    property = defaults.getProperty(name);
  }
  if (property == null) {
    return defaultValue;
  }
  return property;
}
origin: org.apache.geronimo.ext.openejb/openejb-core

public String getProperty(String name, String defaultValue) {
  Object result = get(name);
  String property = result instanceof String ? (String) result : null;
  if (property == null && defaults != null) {
    property = defaults.getProperty(name);
  }
  if (property == null) {
    return defaultValue;
  }
  return property;
}
origin: org.apache.tomee/openejb-core

public String getProperty(final String name) {
  final Object result = get(name);
  String property = result instanceof String ? (String) result : null;
  if (property == null && defaults != null) {
    property = defaults.getProperty(name);
  }
  return property;
}
origin: org.apache.geronimo.ext.openejb/openejb-core

public String getProperty(String name) {
  Object result = get(name);
  String property = result instanceof String ? (String) result : null;
  if (property == null && defaults != null) {
    property = defaults.getProperty(name);
  }
  return property;
}
origin: org.apache.openejb/openejb-core

@Override
public String getProperty(final String name) {
  final Object result = get(name);
  String property = STRING.isInstance(result) ? STRING.cast(result) : null;
  if (property == null && defaults != null) {
    property = defaults.getProperty(name);
  }
  return property;
}
origin: org.apache.openejb/openejb-core

@Override
public String getProperty(final String name, final String defaultValue) {
  final Object result = get(name);
  String property = STRING.isInstance(result) ? STRING.cast(result) : null;
  if (property == null && defaults != null) {
    property = defaults.getProperty(name);
  }
  if (property == null) {
    return defaultValue;
  }
  return property;
}
origin: org.apache.openejb/openejb-core

private void appendProperty(final StringBuilder buffer, final Enumeration<?> keys) {
  final String key = keys.nextElement().toString();
  buffer.append(key);
  buffer.append('=');
  String property = get(key).toString();
  if (property == null) {
    property = defaults.getProperty(key);
  }
  if (property.length() > 40) {
    buffer.append(property.substring(0, 37));
    buffer.append("...");
  } else {
    buffer.append(property);
  }
}
origin: org.apache.geronimo.ext.openejb/openejb-core

public void list(PrintStream out) {
  if (out == null) {
    throw new NullPointerException();
  }
  StringBuffer buffer = new StringBuffer(80);
  Enumeration<?> keys = propertyNames();
  while (keys.hasMoreElements()) {
    String key = (String) keys.nextElement();
    buffer.append(key);
    buffer.append('=');
    String property = (String) get(key);
    if (property == null) {
      property = defaults.getProperty(key);
    }
    if (property.length() > 40) {
      buffer.append(property.substring(0, 37));
      buffer.append("...");
    } else {
      buffer.append(property);
    }
    out.println(buffer.toString());
    buffer.setLength(0);
  }
}
origin: org.apache.geronimo.ext.openejb/openejb-core

public void list(PrintWriter writer) {
  if (writer == null) {
    throw new NullPointerException();
  }
  StringBuffer buffer = new StringBuffer(80);
  Enumeration<?> keys = propertyNames();
  while (keys.hasMoreElements()) {
    String key = (String) keys.nextElement();
    buffer.append(key);
    buffer.append('=');
    String property = (String) get(key);
    while (property == null) {
      property = defaults.getProperty(key);
    }
    if (property.length() > 40) {
      buffer.append(property.substring(0, 37));
      buffer.append("...");
    } else {
      buffer.append(property);
    }
    writer.println(buffer.toString());
    buffer.setLength(0);
  }
}
origin: org.apache.tomee/openejb-core

public void list(final PrintStream out) {
  if (out == null) {
    throw new NullPointerException();
  }
  final StringBuilder buffer = new StringBuilder(80);
  final Enumeration<?> keys = propertyNames();
  while (keys.hasMoreElements()) {
    final String key = (String) keys.nextElement();
    buffer.append(key);
    buffer.append('=');
    String property = (String) get(key);
    if (property == null) {
      property = defaults.getProperty(key);
    }
    if (property.length() > 40) {
      buffer.append(property.substring(0, 37));
      buffer.append("...");
    } else {
      buffer.append(property);
    }
    out.println(buffer.toString());
    buffer.setLength(0);
  }
}
origin: org.apache.tomee/openejb-core

public void list(final PrintWriter writer) {
  if (writer == null) {
    throw new NullPointerException();
  }
  final StringBuilder buffer = new StringBuilder(80);
  final Enumeration<?> keys = propertyNames();
  while (keys.hasMoreElements()) {
    final String key = (String) keys.nextElement();
    buffer.append(key);
    buffer.append('=');
    String property = (String) get(key);
    while (property == null) {
      property = defaults.getProperty(key);
    }
    if (property.length() > 40) {
      buffer.append(property.substring(0, 37));
      buffer.append("...");
    } else {
      buffer.append(property);
    }
    writer.println(buffer.toString());
    buffer.setLength(0);
  }
}
org.apache.openejb.utilSuperPropertiesget

Javadoc

Searches for the attributes associated with the specified property. If the property is not found, look in the default properties. If the property is not found in the default properties, answer null.

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
  • 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

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Path (java.nio.file)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • 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