@Deprecated public abstract class BootstrapResourceUtils extends Object
The utility methods provided in this class are meant to be used throughout the CCS environment to load resources in the Bootstrap environment.
For a description on how to control the Bootstrap environment please refer to the following manual.
| Constructor and Description |
|---|
BootstrapResourceUtils()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Set<Object> |
getAllKeysInProperties(Properties props)
Deprecated.
Use class org.lsst.ccs.bootstrap.BootstrapResourceUtils instead
|
static Properties |
getBootstrapProperties(String fileName)
Deprecated.
Use class org.lsst.ccs.bootstrap.BootstrapResourceUtils instead
|
static Properties |
getBootstrapProperties(String fileName,
Class clazz)
Deprecated.
Use class org.lsst.ccs.bootstrap.BootstrapResourceUtils instead
|
static InputStream |
getBootstrapPropertiesInputStream(String fileName,
Class clazz)
Deprecated.
Use class org.lsst.ccs.bootstrap.BootstrapResourceUtils instead
|
static InputStream |
getBootstrapResource(String resourceName)
Deprecated.
Use class org.lsst.ccs.bootstrap.BootstrapResourceUtils instead
|
static InputStream |
getBootstrapResource(String resourceName,
Class clazz)
Deprecated.
Use class org.lsst.ccs.bootstrap.BootstrapResourceUtils instead
|
static Properties |
getBootstrapSystemProperties()
Deprecated.
Use class org.lsst.ccs.bootstrap.BootstrapResourceUtils instead
|
static String |
getPathOfPropertiesFileInUserResourceDirectories(String propertyFileName)
Deprecated.
Use class org.lsst.ccs.bootstrap.BootstrapResourceUtils instead
|
static String |
getTopUserResourceDirectory()
Deprecated.
Use class org.lsst.ccs.bootstrap.BootstrapResourceUtils instead
|
@Deprecated public static Properties getBootstrapSystemProperties()
This function builds a Properties object by searching and chaining properties according to the following search criteria
@Deprecated public static String getPathOfPropertiesFileInUserResourceDirectories(String propertyFileName)
propertyFileName - The name of the property file to get@Deprecated public static String getTopUserResourceDirectory()
@Deprecated public static Properties getBootstrapProperties(String fileName, Class clazz)
This function builds a Properties object by searching and chaining properties according to the following search criteria
fileName - The name of the properties file to load. This can be a path.clazz - The class on which getResourceAsStream is invoked for the classpath search. If null BootstrapResourceUtils.class is used.@Deprecated public static Properties getBootstrapProperties(String fileName)
This function is similar to #getBootstrapProperties(java.lang.String, boolean, java.lang.Class) .
In this case the Class object is set to null and it defaults to BootstrapResourceUtils.class.
fileName - The name of the properties file to load. This can be a path.#getBootstrapProperties(java.lang.String, boolean, java.lang.Class)@Deprecated public static InputStream getBootstrapPropertiesInputStream(String fileName, Class clazz)
This function is similar to #getBootstrapProperties(java.lang.String, boolean, java.lang.Class) .
Rather than a Properties object it returns the InputStream corresponsing to
that Properties object. This is done by invoking Properties.store(java.io.OutputStream, java.lang.String)
on a ByteArrayOutputStream and then returning an ByteArrayInputStream.
fileName - The name of the properties file to load. This can be a path.clazz - The class on which getResourceAsStream is invoked for the classpath search. If null BootstrapResourceUtils.class is used.BootstrapResourceUtils#getBootstrapProperties(java.lang.String, boolean, java.lang.Class)@Deprecated public static InputStream getBootstrapResource(String resourceName, Class clazz)
This function will search for the desired resource following the search criteria described below. It will return an InputStream for the first resource found.
Search Criteria:
For Properties refer to {@link #getBootstrapProperties(java.lang.String, boolean,java.lang.Class).
resourceName - The name of the resource. This can be a path.clazz - The class on which getResourceAsStream is invoked for the
classpath search. If null BootstrapResourceUtils.class is used.@Deprecated public static InputStream getBootstrapResource(String resourceName)
Internally it invokes getBootstrapResource(java.lang.String,java.lang.Class) with Class
set to BootstrapResourceUtils.class.
resourceName - The name of the resource. This can be a path.getBootstrapResource(java.lang.String, java.lang.Class)@Deprecated public static Set<Object> getAllKeysInProperties(Properties props)
This method keeps into account if a Properties object has a parent and goes down the parent chain to fetch all the keys.
props - The Properties objectCopyright © 2014 LSST. All rights reserved.