- java.lang.Object
-
- uk.autores.handling.GenerateConstantsFromProperties
-
- All Implemented Interfaces:
Handler
public final class GenerateConstantsFromProperties extends Object implements Handler
Use this code generationHandlerto prevent misspelled keys withResourceBundle. For everyPropertiesfile defined as a resource:- Generates a class based on the .properties file name using
Namer.simplifyResourceName(String)andNamer.nameType(String) - Adds a
Stringconstant named from the property key usingNamer.nameConstant(String)
-
-
Constructor Summary
Constructors Constructor Description GenerateConstantsFromProperties()Ctor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ConfigDef>config()All configuration is optional.voidhandle(Context context)Handles the context resources.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.autores.handling.Handler
validConfig
-
-
-
-
Method Detail
-
config
public Set<ConfigDef> config()
All configuration is optional.
Use "visibility" to make the generated classes public.
- Specified by:
configin interfaceHandler- Returns:
- visibility
- See Also:
CfgVisibility
-
-