Skip navigation links
oracle.rules.tools.migrator
Class ResourceManager
java.lang.Object
oracle.rules.tools.migrator.ResourceManager
-
public class ResourceManager
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ResourceManager getInstance()
getPropertyValue
public java.lang.String getPropertyValue(java.lang.String code,
java.util.Locale locale,
java.lang.Object exception)
-
- Parameters:
code
- the error code defined in Messages.java
locale
- the local to find right resource bundle
exception
- used to find package name, then identify the resource file name e.g. oralce.rules.sdk.exception.DataModelException indicates the message file is oralce.rules.sdk.exception.Messages_locale.java. By doing this users can have exceptions in their own packages, however, have to provide their own Messages.java
- Returns:
- the property value
getResource
public java.util.ResourceBundle getResource(java.lang.String fileLocation,
java.util.Locale locale)
throws java.util.MissingResourceException
-
- Throws:
java.util.MissingResourceException
Skip navigation links
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.