Module uk.autores.processing
Package uk.autores.processing.handlers
Class GenerateConstantsFromProperties
- java.lang.Object
-
- uk.autores.processing.handlers.GenerateConstantsFromProperties
-
- All Implemented Interfaces:
Handler
public final class GenerateConstantsFromProperties extends Object implements Handler
Use this code generationHandler
to prevent misspelled keys withResourceBundle
. For everyProperties
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 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.void
handle(Context context)
-
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:
config
in interfaceHandler
- Returns:
- visibility
- See Also:
CfgVisibility
-
-