org.glassfish.pfl.basic.tools.logex
Class ExceptionResourceGenerator
java.lang.Object
org.glassfish.pfl.basic.tools.logex.ExceptionResourceGenerator
public class ExceptionResourceGenerator
- extends Object
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.
- Author:
- ken
|
Method Summary |
static List<String> |
getResources(Class<?> cls)
Generate a list of Strings for a resource file for the given
exception and log handling class. |
static void |
main(String[] strs)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getResources
public static List<String> getResources(Class<?> cls)
- 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.
main
public static void main(String[] strs)
throws IOException
- Throws:
IOException
Copyright © 2013 Oracle. All Rights Reserved.