com.sun.enterprise.tools.classmodel
Class InhabitantsFilter

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

public class InhabitantsFilter
extends Constants

Provides ability to filter an inhabitants file to only include what is designated by a specified classpath.

Author:
Jeff Trent

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
protected InhabitantsFilter()
           
 
Method Summary
static void main(String[] args)
          Requires Constants.PARAM_INHABITANT_SOURCE_FILE, Constants.PARAM_INHABITANT_TARGET_FILE, Constants.PARAM_INHABITANTS_SOURCE_FILES, and Constants.PARAM_INHABITANTS_SORTED to be passed.
static void process(InhabitantsDescriptor inDescriptor, InhabitantsDescriptor outDescriptor, CodeSourceFilter filter)
          Builds the outDescriptor based on filtered inDescriptor contents.
static void writeInhabitantsFile(File targetInhabitantFile, InhabitantsDescriptor outDescriptor, boolean sorted)
          Writes the inhabitants file to disk.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InhabitantsFilter

protected InhabitantsFilter()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Requires Constants.PARAM_INHABITANT_SOURCE_FILE, Constants.PARAM_INHABITANT_TARGET_FILE, Constants.PARAM_INHABITANTS_SOURCE_FILES, and Constants.PARAM_INHABITANTS_SORTED to be passed.

Parameters:
args - not used
Throws:
Exception

process

public static void process(InhabitantsDescriptor inDescriptor,
                           InhabitantsDescriptor outDescriptor,
                           CodeSourceFilter filter)
Builds the outDescriptor based on filtered inDescriptor contents.

Parameters:
inDescriptor - the source input descriptor
outDescriptor - the destination descriptor
filter - the filter

writeInhabitantsFile

public static void writeInhabitantsFile(File targetInhabitantFile,
                                        InhabitantsDescriptor outDescriptor,
                                        boolean sorted)
                                 throws FileNotFoundException,
                                        IOException
Writes the inhabitants file to disk.

Parameters:
targetInhabitantFile -
outDescriptor -
sorted -
Throws:
FileNotFoundException
IOException


Copyright © 2013 Oracle Corporation. All Rights Reserved.