Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.common.i18n
Class ExceptionUtility  view ExceptionUtility download ExceptionUtility.java

java.lang.Object
  extended byorg.common.i18n.ContextUtility
      extended byorg.common.i18n.ExceptionUtility

public class ExceptionUtility
extends ContextUtility

This is an extension of the ContextUtility class, it has a default base name for the resource bundle, as defined in the public constant BASENAME. This class will make sure the required resource bundle is loaded and messages can be retrieved using context keys you should use this class for example as follows:

throw new BusinessException(ExceptionUtility.getInstance("this.is.an.example.context.key"));


Nested Class Summary
 
Nested classes inherited from class org.common.i18n.ContextUtility
 
Field Summary
static java.lang.String BASENAME
          The BASENAME is 'exception'.
 
Fields inherited from class org.common.i18n.ContextUtility
 
Constructor Summary
private ExceptionUtility()
          Constructor for the ExceptionUtility object
 
Method Summary
static ContextUtility getInstance()
          Gets a ContextUtility instance using the BASENAME field, this is equivalent to ContextUtility.getInstance( BASENAME )
 
Methods inherited from class org.common.i18n.ContextUtility
findMessage, getInstance, getInstance, getInstance, getInstance, getLocale, getMessage, getMessage, getMessage, getParentContext, invalidateCache, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASENAME

public static final java.lang.String BASENAME
The BASENAME is 'exception'.

See Also:
Constant Field Values
Constructor Detail

ExceptionUtility

private ExceptionUtility()
Constructor for the ExceptionUtility object

Method Detail

getInstance

public static ContextUtility getInstance()
Gets a ContextUtility instance using the BASENAME field, this is equivalent to ContextUtility.getInstance( BASENAME )