java.lang.Object
uk.autores.handling.GenerateConstantsFromProperties
- All Implemented Interfaces:
Handler
Use this code generation
Handler
to prevent misspelled keys with ResourceBundle
.
For every Properties
file defined as a resource:
- Generates a class based on the .properties file name using
Namer.simplifyResourceName(String)
andNamer.nameType(String)
- Adds a
String
constant named from the property key usingNamer.nameConstant(String)
-
Constructor Details
-
GenerateConstantsFromProperties
public GenerateConstantsFromProperties()Ctor
-
-
Method Details
-
config
All configuration is optional.
Use "visibility" to make the generated classes public.
-
handle
Description copied from interface:Handler
Handles the context resources.
-