private Properties loadProperties(final URL resource) throws IOException { return IO.readProperties(resource); }
private static Properties asProperies(final URL resource) { final Properties properties = new Properties(); try { IO.readProperties(resource, properties); } catch (final Throwable e) { //Ignore } return properties; }
private static Properties asProperies(final URL resource) { final Properties properties = new Properties(); try { IO.readProperties(resource, properties); } catch (final Throwable e) { //Ignore } return properties; }
public static Properties readProperties(final File resource) throws IOException { return readProperties(resource, new Properties()); }
public static Properties readProperties(final URL resource) throws IOException { return readProperties(resource, new Properties()); }
private static Properties loadVersionProperties() throws IOException { return IO.readProperties(new URL("resource:/openejb-version.properties")); } }
public static Properties readProperties(final File resource) throws IOException { return readProperties(resource, new Properties()); }
private static String getUrlPackagePrefixes(final InputStream in) { try { final Properties properties = IO.readProperties(in, new Properties()); return properties.getProperty(Context.URL_PKG_PREFIXES); } catch (final IOException e) { return null; } }
private static String getUrlPackagePrefixes(final InputStream in) { try { final Properties properties = IO.readProperties(in, new Properties()); return properties.getProperty(Context.URL_PKG_PREFIXES); } catch (final IOException e) { return null; } }
public static Properties readProperties(final File resource, final Properties properties) throws IOException { return readProperties(read(resource), properties); }
public static Properties readProperties(final URL resource, final Properties properties) throws IOException { return readProperties(read(resource), properties); }
public static Properties readProperties(final URL resource, final Properties properties) throws IOException { return readProperties(read(resource), properties); }
public static Properties readProperties(final File resource, final Properties properties) throws IOException { return readProperties(read(resource), properties); }
private static Properties loadLoggingProperties() { try { final File conf = SystemInstance.get().getConf(null); final File file = new File(conf, "logging.properties"); return IO.readProperties(file); } catch (final IOException e) { return new Properties(); } }
private static Properties loadLoggingProperties() { try { final File conf = SystemInstance.get().getConf(null); final File file = new File(conf, "logging.properties"); return IO.readProperties(file); } catch (final IOException e) { return new Properties(); } }
private static Properties loadLoggingProperties() { try { final File conf = SystemInstance.get().getConf(null); final File file = new File(conf, "logging.properties"); return IO.readProperties(file); } catch (final IOException e) { return new Properties(); } }
public Properties unmarshal(final String s) throws Exception { return IO.readProperties(IO.read(s), new SuperProperties()); }
public Properties unmarshal(final String s) throws Exception { return IO.readProperties(IO.read(s), new SuperProperties()); }
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; }
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; }