Package org.hcjf.layers.locale
Class PropertiesFileLocaleLayer
- java.lang.Object
-
- org.hcjf.layers.Layer
-
- org.hcjf.layers.locale.PropertiesFileLocaleLayer
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler,LayerInterface,LocaleLayerInterface
public abstract class PropertiesFileLocaleLayer extends Layer implements LocaleLayerInterface
This class use the java resource bundle api to translate the text for the specific locale.- Author:
- javaito
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hcjf.layers.Layer
Layer.Access, Layer.LayerAgent, Layer.LayerAgentMBean
-
-
Constructor Summary
Constructors Constructor Description PropertiesFileLocaleLayer(java.lang.String implName)
-
Method Summary
Modifier and Type Method Description java.lang.Stringtranslate(java.lang.String text)Changes the parameter string with the value into the bundle file indexed by the parameter text.-
Methods inherited from class org.hcjf.layers.Layer
checkAccess, getAliases, getImplName, getLayer, getProxy, getSession, getTarget, invoke, isOverwritable, isPlugin, isStateful
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hcjf.layers.LayerInterface
getImplName, getRegex, isDistributed, isPlugin, isStateful
-
-
-
-
Method Detail
-
translate
public java.lang.String translate(java.lang.String text)
Changes the parameter string with the value into the bundle file indexed by the parameter text.- Specified by:
translatein interfaceLocaleLayerInterface- Parameters:
text- Text to translate.- Returns:
- Translated text or the same text if the are any error.
-
-