Class ExceptionResourceGenerator
java.lang.Object
org.glassfish.pfl.basic.tools.logex.ExceptionResourceGenerator
Scans a directory looking for class files. For each class file,
if the class file is annotated with ExceptionWrapper, extract the
messages and write out into a resource file.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) Scanner.Actionprivate final ExceptionResourceGenerator.Arguments -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringgetLoggerName(Class<?> cls) getResources(Class<?> cls) Generate a list of Strings for a resource file for the given exception and log handling class.static voidprivate voidprivate voidrun()
-
Field Details
-
args
-
action
Scanner.Action action
-
-
Constructor Details
-
ExceptionResourceGenerator
- Throws:
IOException
-
-
Method Details
-
msg
-
getLoggerName
-
getResources
Generate a list of Strings for a resource file for the given exception and log handling class.- Parameters:
cls- The class that describes messages for logging.- Returns:
- A list of strings suitable for inclusion in a resource bundle.
-
run
- Throws:
IOException
-
main
- Throws:
IOException
-