org.cruxframework.crux.core.config
Class ConfigurationInvocationHandler

java.lang.Object
  extended by org.cruxframework.crux.core.config.ConstantsInvocationHandler
      extended by org.cruxframework.crux.core.config.ConfigurationInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class ConfigurationInvocationHandler
extends ConstantsInvocationHandler

Dynamic proxy for message resources.

Author:
Thiago da Rosa de Bustamante, Gesse S. F. Dafe

Constructor Summary
ConfigurationInvocationHandler(Class<?> targetInterface)
           
 
Method Summary
protected  String getMessageFromProperties(Object[] args, String name)
           
protected
<T> PropertyResourceBundle
getPropertiesForLocale(Class<T> targetInterface)
           
 
Methods inherited from class org.cruxframework.crux.core.config.ConstantsInvocationHandler
getMessageFromAnnotation, invoke, invokeSetter, isValidPropertySetter, loadProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationInvocationHandler

public ConfigurationInvocationHandler(Class<?> targetInterface)
Method Detail

getPropertiesForLocale

protected <T> PropertyResourceBundle getPropertiesForLocale(Class<T> targetInterface)
Specified by:
getPropertiesForLocale in class ConstantsInvocationHandler
Returns:

getMessageFromProperties

protected String getMessageFromProperties(Object[] args,
                                          String name)
Overrides:
getMessageFromProperties in class ConstantsInvocationHandler
Returns:


Copyright © 2014. All rights reserved.