java.lang.Object | +--com.ibm.commerce.tools.util.ResourceDirectory
Maintains the set of all registered bean instantiators.
Method Summary | |
---|---|
static void |
initializeInstDirectory() Loads all resources defined by the resources.xml files. |
static void |
loadInstDirectory(java.util.Vector model_files) Populates the instantiator directory from the given XML based configuration file. |
static java.lang.Object |
lookup(java.lang.String key) Gets the resource from the cache. |
static java.lang.Object |
lookup(java.lang.String key, java.util.Locale locale) Gets the resource from the cache. |
static java.lang.Object |
lookup(java.lang.String name_space,
java.lang.String inst_name) Gets the resource from the cache. |
static java.lang.Object |
lookup(java.lang.String name_space, java.lang.String inst_name,
java.util.Locale locale) Gets the resource from the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Method Detail |
---|
public static final void initializeInstDirectory() throws ECSystemException
ECSystemException
- If an error occurs, an exception is
thrown.public static final void loadInstDirectory(java.util.Vector model_files) throws ECSystemException
model_files
- the XML configuration file
ECSystemException
- If an error occurs, an exception is
thrown.public static final java.lang.Object lookup(java.lang.String key) throws ECSystemException
key
- the name of resource in form
<namespace>.<resource name>
ECSystemException
- If an error occurs, an exception is
thrown.public static final java.lang.Object lookup(java.lang.String name_space, java.lang.String inst_name) throws ECSystemException
name_space
- the locale of resourceinst_name
- the name of resource
ECSystemException
- If an error occurs, an exception is
thrown.public static final java.lang.Object lookup(java.lang.String name_space, java.lang.String inst_name, java.util.Locale locale) throws ECSystemException
name_space
- the locale of resourceinst_name
- the name of resourcelocale
- the version of resource to retrieve
ECSystemException
- If an error occurs, an exception is
thrown.public static final java.lang.Object lookup(java.lang.String key, java.util.Locale locale) throws ECSystemException
key
- the name of resource in form
<namespace>.<resource name>locale
- the version of resource to retrieve
ECSystemException
- If an error occurs, an exception is
thrown.