org.cruxframework.crux.plugin.gadget.config
Class GadgetsConfigurationFactory

java.lang.Object
  extended by org.cruxframework.crux.core.config.AbstractPropertiesFactory
      extended by org.cruxframework.crux.plugin.gadget.config.GadgetsConfigurationFactory

public class GadgetsConfigurationFactory
extends org.cruxframework.crux.core.config.AbstractPropertiesFactory

Factory for configuration parameters. Receive an Interface and use it's name to look for resource bundles in the classpath. Each interface's method is used as key in that property file.

Author:
Thiago da Rosa de Bustamante

Field Summary
protected static GadgetsConfigurationFactory instance
           
 
Method Summary
static CruxGadgetConfig getConfigurations()
          Create a message helper class that access a resource bundle using the methods present in the given interface.
protected  org.cruxframework.crux.core.config.ConstantsInvocationHandler getInvocationHandler(Class<?> targetInterface)
           
 
Methods inherited from class org.cruxframework.crux.core.config.AbstractPropertiesFactory
getConstantsFromProperties, initProxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static final GadgetsConfigurationFactory instance
Method Detail

getConfigurations

public static CruxGadgetConfig getConfigurations()
                                          throws org.cruxframework.crux.core.i18n.MessageException
Create a message helper class that access a resource bundle using the methods present in the given interface.

Parameters:
targetInterface -
Returns:
Throws:
org.cruxframework.crux.core.i18n.MessageException

getInvocationHandler

protected org.cruxframework.crux.core.config.ConstantsInvocationHandler getInvocationHandler(Class<?> targetInterface)
Specified by:
getInvocationHandler in class org.cruxframework.crux.core.config.AbstractPropertiesFactory


Copyright © 2014. All rights reserved.