Tabnine Logo
AbstractPropertiesFactory.getPropertiesFromFile
Code IndexAdd Tabnine to your IDE (free)

How to use
getPropertiesFromFile
method
in
com.arjuna.common.util.propertyservice.AbstractPropertiesFactory

Best Java code snippets using com.arjuna.common.util.propertyservice.AbstractPropertiesFactory.getPropertiesFromFile (Showing top 10 results out of 315)

origin: org.jboss.narayana.jts/narayana-jts-idlj

public static Properties getPropertiesFromFile(String propertyFileName, ClassLoader classLoader) {
  initPropertiesFactory();
  return delegatePropertiesFactory.getPropertiesFromFile(propertyFileName, classLoader);
}
origin: jbosstm/narayana

public static Properties getPropertiesFromFile(String propertyFileName, ClassLoader classLoader) {
  initPropertiesFactory();
  return delegatePropertiesFactory.getPropertiesFromFile(propertyFileName, classLoader);
}
origin: org.jboss.narayana.arjunacore/arjunacore

public static Properties getPropertiesFromFile(String propertyFileName, ClassLoader classLoader) {
  initPropertiesFactory();
  return delegatePropertiesFactory.getPropertiesFromFile(propertyFileName, classLoader);
}
origin: jbosstm/narayana

public static Properties getPropertiesFromFile(String propertyFileName, ClassLoader classLoader) {
  initPropertiesFactory();
  return delegatePropertiesFactory.getPropertiesFromFile(propertyFileName, classLoader);
}
origin: jbosstm/narayana

public static Properties getPropertiesFromFile(String propertyFileName, ClassLoader classLoader) {
  initPropertiesFactory();
  return delegatePropertiesFactory.getPropertiesFromFile(propertyFileName, classLoader);
}
origin: jbosstm/narayana

private synchronized void initDefaultProperties(String fileNamePropertyKey) {
  if(defaultProperties != null) {
    return;
  }
  // This is where the properties loading takes place. The algorithm is as follows:
  // If the specified fileNamePropertyKey exists as a key is the system properties, take the value of that property as
  // the location of the module's properties file. This allows file location to be overriden easily.
  String propertyFileName = System.getProperty(fileNamePropertyKey);
  // If the system property is not set, try to load the build time properties. Build time properties
  // are not the module properties! These are optional and so loading may fail. That's not considered an error.
  // If the properties file name is defined by the build time properties, use that.
  // (In JBossTS it mostly does exist - the build scripts put build time properties into the .jars manifest file.)
  if (propertyFileName == null) {
    propertyFileName = ConfigurationInfo.getPropertiesFile();
  }
  // Bail out if it has not been possible to get a file name by either of these method.
  if(propertyFileName == null) {
    throw new RuntimeException("Unable to resolve property file name");
  }
  defaultProperties = getPropertiesFromFile(propertyFileName, PropertiesFactoryStax.class.getClassLoader());
}
origin: org.jboss.narayana.jts/narayana-jts-idlj

private synchronized void initDefaultProperties(String fileNamePropertyKey) {
  if(defaultProperties != null) {
    return;
  }
  // This is where the properties loading takes place. The algorithm is as follows:
  // If the specified fileNamePropertyKey exists as a key is the system properties, take the value of that property as
  // the location of the module's properties file. This allows file location to be overriden easily.
  String propertyFileName = System.getProperty(fileNamePropertyKey);
  // If the system property is not set, try to load the build time properties. Build time properties
  // are not the module properties! These are optional and so loading may fail. That's not considered an error.
  // If the properties file name is defined by the build time properties, use that.
  // (In JBossTS it mostly does exist - the build scripts put build time properties into the .jars manifest file.)
  if (propertyFileName == null) {
    propertyFileName = ConfigurationInfo.getPropertiesFile();
  }
  // Bail out if it has not been possible to get a file name by either of these method.
  if(propertyFileName == null) {
    throw new RuntimeException("Unable to resolve property file name");
  }
  defaultProperties = getPropertiesFromFile(propertyFileName, PropertiesFactoryStax.class.getClassLoader());
}
origin: org.jboss.narayana.arjunacore/arjunacore

private synchronized void initDefaultProperties(String fileNamePropertyKey) {
  if(defaultProperties != null) {
    return;
  }
  // This is where the properties loading takes place. The algorithm is as follows:
  // If the specified fileNamePropertyKey exists as a key is the system properties, take the value of that property as
  // the location of the module's properties file. This allows file location to be overriden easily.
  String propertyFileName = System.getProperty(fileNamePropertyKey);
  // If the system property is not set, try to load the build time properties. Build time properties
  // are not the module properties! These are optional and so loading may fail. That's not considered an error.
  // If the properties file name is defined by the build time properties, use that.
  // (In JBossTS it mostly does exist - the build scripts put build time properties into the .jars manifest file.)
  if (propertyFileName == null) {
    propertyFileName = ConfigurationInfo.getPropertiesFile();
  }
  // Bail out if it has not been possible to get a file name by either of these method.
  if(propertyFileName == null) {
    throw new RuntimeException("Unable to resolve property file name");
  }
  defaultProperties = getPropertiesFromFile(propertyFileName, PropertiesFactoryStax.class.getClassLoader());
}
origin: jbosstm/narayana

private synchronized void initDefaultProperties(String fileNamePropertyKey) {
  if(defaultProperties != null) {
    return;
  }
  // This is where the properties loading takes place. The algorithm is as follows:
  // If the specified fileNamePropertyKey exists as a key is the system properties, take the value of that property as
  // the location of the module's properties file. This allows file location to be overriden easily.
  String propertyFileName = System.getProperty(fileNamePropertyKey);
  // If the system property is not set, try to load the build time properties. Build time properties
  // are not the module properties! These are optional and so loading may fail. That's not considered an error.
  // If the properties file name is defined by the build time properties, use that.
  // (In JBossTS it mostly does exist - the build scripts put build time properties into the .jars manifest file.)
  if (propertyFileName == null) {
    propertyFileName = ConfigurationInfo.getPropertiesFile();
  }
  // Bail out if it has not been possible to get a file name by either of these method.
  if(propertyFileName == null) {
    throw new RuntimeException("Unable to resolve property file name");
  }
  defaultProperties = getPropertiesFromFile(propertyFileName, PropertiesFactoryStax.class.getClassLoader());
}
origin: jbosstm/narayana

private synchronized void initDefaultProperties(String fileNamePropertyKey) {
  if(defaultProperties != null) {
    return;
  }
  // This is where the properties loading takes place. The algorithm is as follows:
  // If the specified fileNamePropertyKey exists as a key is the system properties, take the value of that property as
  // the location of the module's properties file. This allows file location to be overriden easily.
  String propertyFileName = System.getProperty(fileNamePropertyKey);
  // If the system property is not set, try to load the build time properties. Build time properties
  // are not the module properties! These are optional and so loading may fail. That's not considered an error.
  // If the properties file name is defined by the build time properties, use that.
  // (In JBossTS it mostly does exist - the build scripts put build time properties into the .jars manifest file.)
  if (propertyFileName == null) {
    propertyFileName = ConfigurationInfo.getPropertiesFile();
  }
  // Bail out if it has not been possible to get a file name by either of these method.
  if(propertyFileName == null) {
    throw new RuntimeException("Unable to resolve property file name");
  }
  defaultProperties = getPropertiesFromFile(propertyFileName, PropertiesFactoryStax.class.getClassLoader());
}
com.arjuna.common.util.propertyserviceAbstractPropertiesFactorygetPropertiesFromFile

Javadoc

Returns the config properties read from a specified location.

Popular methods of AbstractPropertiesFactory

  • getDefaultProperties
    Returns the systems default properties, as read from the configuration file.
  • applySystemProperties
    System properties take precedence over ones from the file.
  • initDefaultProperties
  • loadFromFile
    Standard java.util.Properties xml format, with JBossAS style substitution post-processing.
  • loadFromXML

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • JFileChooser (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Github Copilot alternatives
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