Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.7)

E10663-11

oracle.rules.sdk2.exception
Class ResourceManager

java.lang.Object
  extended by oracle.rules.sdk2.exception.ResourceManager

public final class ResourceManager
extends java.lang.Object


Method Summary
static ResourceManager getInstance()
           
 java.lang.String getPropertyValue(java.lang.String code, java.util.Locale locale)
           
 java.lang.String getPropertyValue(java.lang.String code, java.util.Locale locale, java.lang.Object exception)
           
 java.util.ResourceBundle getResource(java.lang.String fileLocation, java.util.Locale locale)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String code,
                                         java.util.Locale locale)

getResource

public java.util.ResourceBundle getResource(java.lang.String fileLocation,
                                            java.util.Locale locale)
                                     throws java.util.MissingResourceException
Throws:
java.util.MissingResourceException

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.7)

E10663-11

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.