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.
  • Field Details

  • Constructor Details

  • Method Details

    • msg

      private void msg(String string)
    • getLoggerName

      private static String getLoggerName(Class<?> cls)
    • 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.
    • run

      private void run() throws IOException
      Throws:
      IOException
    • main

      public static void main(String[] strs) throws IOException
      Throws:
      IOException