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

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

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

origin: org.apache.tomee/openejb-core

out.println();
final String value = properties.getProperty(name);
origin: org.apache.openejb/openejb-core

out.println();
final String value = properties.getProperty(name);
origin: org.apache.geronimo.ext.openejb/openejb-core

String value = properties.getProperty(name);
String comment = properties.getComment(name);
origin: org.apache.openejb/tomee-jdbc

final String passwordCipher = properties.getProperty("PasswordCipher");
if (passwordCipher != null && "PlainText".equals(passwordCipher)) { // no need to warn about it
  properties.remove("PasswordCipher");
} else {
  final String password = properties.getProperty("Password");
  if (passwordCipher != null) {
    final PasswordCipher cipher = PasswordCipherFactory.getPasswordCipher(passwordCipher);
    if (!value.isEmpty()) {
      if ("MaxOpenPreparedStatements".equalsIgnoreCase(key) || "PoolPreparedStatements".equalsIgnoreCase(key)) {
        if ("0".equalsIgnoreCase(properties.getProperty("MaxOpenPreparedStatements", "0"))
            || "false".equalsIgnoreCase(properties.getProperty("PoolPreparedStatements", "false"))) {
          continue;
        final String interceptors = properties.getProperty("jdbcInterceptors");
        if (interceptors == null) {
          converted.setProperty("jdbcInterceptors",
              "StatementCache(max=" + properties.getProperty("MaxOpenPreparedStatements", "128") + ")");
          LOGGER.debug("Tomcat-jdbc StatementCache added to handle prepared statement cache/pool");
        } else if (!interceptors.contains("StatementCache")) {
          converted.setProperty("jdbcInterceptors", interceptors
              + ";StatementCache(max=" + properties.getProperty("MaxOpenPreparedStatements", "128") + ")");
          LOGGER.debug("Tomcat-jdbc StatementCache added to handle prepared statement cache/pool");
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

for (final String key : props.stringPropertyNames()) {
  if (!key.isEmpty()) {
    connectionFactory.property(key, props.getProperty(key));
origin: org.apache.tomee/openejb-core

for (final String key : props.stringPropertyNames()) {
  if (!key.isEmpty()) {
    dataSource.property(key, props.getProperty(key));
origin: org.apache.openejb/openejb-core

for (final String key : props.stringPropertyNames()) {
  if (!key.isEmpty()) {
    dataSource.property(key, props.getProperty(key));
org.apache.openejb.utilSuperPropertiesgetProperty

Popular methods of SuperProperties

  • <init>
    Constructs a new Properties object using the specified default properties.
  • caseInsensitive
  • entrySet
    Returns an unmodifiable view of the entries.
  • 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

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • getContentResolver (Context)
  • String (java.lang)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top PhpStorm 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