org.jvnet.hk2.component.classmodel
Class InhabitantsParsingContextGenerator

java.lang.Object
  extended by org.jvnet.hk2.component.classmodel.InhabitantsParsingContextGenerator
All Implemented Interfaces:
Closeable

Deprecated.

@Deprecated
public abstract class InhabitantsParsingContextGenerator
extends Object
implements Closeable

Responsible for generating the collection of inhabitants, decoupling from implementation detail for the caller.

The caller is expected to continually build up the InhabitantsGenerator context by calling add*(), followed by calling getModelInhabitants() to obtain the progenitors of the inhabitants.

There are two ways to close this instance, either through getContext() or through calling close() directly.

Author:
Jerome Dochez, Jeff Trent

Constructor Summary
protected InhabitantsParsingContextGenerator(ExecutorService es, ClassPath inhabitantsClassPath, FileFilter inhabitantsClassPathFilter)
          Deprecated.  
 
Method Summary
protected  void addInhabitantsScanner(String name, InhabitantsScanner is)
          Deprecated.  
 void close()
          Deprecated.  
static InhabitantsParsingContextGenerator create(Habitat h, ExecutorService es, ClassPath inhabitantsClassPath, FileFilter inhabitantsClassPathFilter)
          Deprecated. Factory for the InhabitantsParsingContextGenerator
 ParsingContext getContext()
          Deprecated. Retrieves the parsing context that can be used for model generation elsewhere.
 Collection<InhabitantsScanner> getInhabitantsScanners()
          Deprecated.  
 void parse(Collection<File> files)
          Deprecated. Add the collection of files to the current InhabitantsGenerator context.
 void parse(File f)
          Deprecated. Eventually we can perform optimizations here instead of a pass-thru to parseAlways.
protected  void parseAlways(Parser parser, File f)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InhabitantsParsingContextGenerator

protected InhabitantsParsingContextGenerator(ExecutorService es,
                                             ClassPath inhabitantsClassPath,
                                             FileFilter inhabitantsClassPathFilter)
Deprecated. 
Method Detail

create

public static InhabitantsParsingContextGenerator create(Habitat h,
                                                        ExecutorService es,
                                                        ClassPath inhabitantsClassPath,
                                                        FileFilter inhabitantsClassPathFilter)
Deprecated. 
Factory for the InhabitantsParsingContextGenerator

Parameters:
h - habitat not currently used; reserved for future use
es - the executor to use for any async processing (e.g., parsing)
inhabitantsClassPath - the fully qualified classpath in order to resolve the class-model
inhabitantsClassPathFilter - the filter used for pruning the classpath (may also be a ClassPathAdvisor)
Returns:
an empty context InhabitantsGenerator

parse

public void parse(Collection<File> files)
           throws IOException
Deprecated. 
Add the collection of files to the current InhabitantsGenerator context.

Parameters:
files - the files to parse.
Throws:
IOException

getContext

public ParsingContext getContext()
Deprecated. 
Retrieves the parsing context that can be used for model generation elsewhere. Note that this can be called at most once and then this instance is implicitly closed.

Returns:
the parsing context given the code sources provided

getInhabitantsScanners

public Collection<InhabitantsScanner> getInhabitantsScanners()
Deprecated. 
Returns:
the collection of InhabitantsScanners being maintained

addInhabitantsScanner

protected void addInhabitantsScanner(String name,
                                     InhabitantsScanner is)
Deprecated. 

parse

public void parse(File f)
           throws IOException
Deprecated. 
Eventually we can perform optimizations here instead of a pass-thru to parseAlways.

Throws:
IOException

parseAlways

protected void parseAlways(Parser parser,
                           File f)
                    throws IOException
Deprecated. 
Throws:
IOException

close

public void close()
Deprecated. 
Specified by:
close in interface Closeable


Copyright © 2013 Oracle Corporation. All Rights Reserved.