org.glassfish.pfl.basic.tools.logex
Class ExceptionResourceGenerator

java.lang.Object
  extended by org.glassfish.pfl.basic.tools.logex.ExceptionResourceGenerator

public class ExceptionResourceGenerator
extends java.lang.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 java.util.List<java.lang.String> getResources(java.lang.Class<?> cls)
          Generate a list of Strings for a resource file for the given exception and log handling class.
static void main(java.lang.String[] strs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResources

public static java.util.List<java.lang.String> getResources(java.lang.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(java.lang.String[] strs)
                 throws java.io.IOException
Throws:
java.io.IOException