com.googlecode.fascinator.portal.services.impl
Class JavaPropertiesLanguageService

java.lang.Object
  extended by com.googlecode.fascinator.portal.services.impl.JavaPropertiesLanguageService
All Implemented Interfaces:
FascinatorService, LanguageService

public class JavaPropertiesLanguageService
extends Object
implements LanguageService

Service that will read in a set of Java properties files from a given directory and then use them to resolve strings based on message codes These can be called from your velocity templates using the #displayMessage template

Author:
andrewbrazzatti

Constructor Summary
JavaPropertiesLanguageService()
           
 
Method Summary
 String displayMessage(String messageCode)
           
 JsonSimple getConfig()
           
 void init()
           
 void setConfig(JsonSimple config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaPropertiesLanguageService

public JavaPropertiesLanguageService()
Method Detail

getConfig

public JsonSimple getConfig()
Specified by:
getConfig in interface FascinatorService

setConfig

public void setConfig(JsonSimple config)
Specified by:
setConfig in interface FascinatorService

init

public void init()
Specified by:
init in interface FascinatorService

displayMessage

public String displayMessage(String messageCode)
Specified by:
displayMessage in interface LanguageService


Copyright © 2009-2013. All Rights Reserved.