com.sun.enterprise.tools.classmodel
Class InhabitantsGenerator

java.lang.Object
  extended by com.sun.enterprise.tools.classmodel.Constants
      extended by com.sun.enterprise.tools.classmodel.InhabitantsGenerator

public class InhabitantsGenerator
extends Constants

Generates /META-INF/inhabitants/* based on comma-delimited list of jars and directories passed in as arguments.

Author:
Jeff Trent
See Also:
InhabitantFileBasedParser

Field Summary
 
Fields inherited from class com.sun.enterprise.tools.classmodel.Constants
PARAM_INHABITANT_SOURCE_FILE, PARAM_INHABITANT_TARGET_FILE, PARAM_INHABITANTS_CLASSPATH, PARAM_INHABITANTS_CLASSPATH_ADVISOR, PARAM_INHABITANTS_SORTED, PARAM_INHABITANTS_SOURCE_FILES
 
Constructor Summary
InhabitantsGenerator(InhabitantsDescriptor descriptor, ClassPath inhabitantsSourceFiles, ClassPath inhabitantsClassPath)
          Construction with all of the parameters needed to generate.
 
Method Summary
 void generate(File targetInhabitantFile, boolean sort)
           
 void generate(PrintWriter writer)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InhabitantsGenerator

public InhabitantsGenerator(InhabitantsDescriptor descriptor,
                            ClassPath inhabitantsSourceFiles,
                            ClassPath inhabitantsClassPath)
Construction with all of the parameters needed to generate.

Parameters:
descriptor - optionally a preconfigured inhabitants descriptor
inhabitantsSourceFiles - required set of inhabitants source files (directories | jars)
inhabitantsClassPath - the fully qualified classpath in order to resolve class-model
Method Detail

generate

public void generate(File targetInhabitantFile,
                     boolean sort)
              throws IOException
Throws:
IOException

generate

public void generate(PrintWriter writer)
              throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2013 Oracle Corporation. All Rights Reserved.