org.iscreen.mvel
Class MvelResourceMessage

java.lang.Object
  extended by org.iscreen.mvel.MvelMessage
      extended by org.iscreen.mvel.MvelResourceMessage
All Implemented Interfaces:
FailureMessage

public class MvelResourceMessage
extends MvelMessage

This resource message is pulled from a resource and then converted based upon the contained MVEL expressions.

Author:
Shellman, Dan

Field Summary
protected  java.lang.String key
           
protected  ConfiguredResource resource
           
 
Fields inherited from class org.iscreen.mvel.MvelMessage
contextBean, extraMessages, severityLevel, template
 
Constructor Summary
MvelResourceMessage(ConfiguredResource theResource, java.lang.String theKey, int severity)
          Default constructor.
 
Method Summary
 java.lang.String getTemplate(java.util.Locale locale)
          Retrieves the template from the resource using the key provided.
 java.lang.String toString()
          For debug info.
 
Methods inherited from class org.iscreen.mvel.MvelMessage
addMessage, getContextBean, getExtraMessages, getMessage, getMessage, getSeverity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resource

protected ConfiguredResource resource

key

protected java.lang.String key
Constructor Detail

MvelResourceMessage

public MvelResourceMessage(ConfiguredResource theResource,
                           java.lang.String theKey,
                           int severity)
Default constructor.

Method Detail

getTemplate

public java.lang.String getTemplate(java.util.Locale locale)
Retrieves the template from the resource using the key provided.

Overrides:
getTemplate in class MvelMessage
Parameters:
locale - The locale to use in determining the template.
Returns:
Returns the template from the resource using the key.

toString

public java.lang.String toString()
For debug info.

Overrides:
toString in class java.lang.Object
Returns:
Returns debug info.