|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.hk2.component.classmodel.InhabitantsParsingContextGenerator
public abstract class InhabitantsParsingContextGenerator
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 throughgetContext()
or through calling close()
directly.
Constructor Summary | |
---|---|
protected |
InhabitantsParsingContextGenerator(java.util.concurrent.ExecutorService es,
ClassPath inhabitantsClassPath)
|
Method Summary | |
---|---|
protected void |
addInhabitantsScanner(java.lang.String name,
InhabitantsScanner is)
|
void |
close()
|
static InhabitantsParsingContextGenerator |
create(Habitat h)
Factory for the InhabitantsParsingContextGenerator |
static InhabitantsParsingContextGenerator |
create(Habitat h,
java.util.concurrent.ExecutorService es,
ClassPath inhabitantsClassPath)
Factory for the InhabitantsParsingContextGenerator |
org.glassfish.hk2.classmodel.reflect.ParsingContext |
getContext()
Retrieves the parsing context that can be used for model generation elsewhere. |
java.util.Collection<InhabitantsScanner> |
getInhabitantsScanners()
|
void |
parse(java.util.Collection<java.io.File> files)
Add the collection of files to the current InhabitantsGenerator context. |
void |
parse(java.io.File f)
Eventually we can perform optimizations here instead of a pass-thru to parseAlways. |
protected void |
parseAlways(org.glassfish.hk2.classmodel.reflect.Parser parser,
java.io.File f)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected InhabitantsParsingContextGenerator(java.util.concurrent.ExecutorService es, ClassPath inhabitantsClassPath)
Method Detail |
---|
public static InhabitantsParsingContextGenerator create(Habitat h)
InhabitantsParsingContextGenerator
h
- habitat not currently used; reserved for future use
public static InhabitantsParsingContextGenerator create(Habitat h, java.util.concurrent.ExecutorService es, ClassPath inhabitantsClassPath)
InhabitantsParsingContextGenerator
h
- habitat not currently used; reserved for future usees
- the executor to use for any async processing (e.g., parsing)inhabitantsClassPath
- the fully qualified classpath in order to resolve class-model
public void parse(java.util.Collection<java.io.File> files) throws java.io.IOException
files
- the files to parse.
java.io.IOException
public org.glassfish.hk2.classmodel.reflect.ParsingContext getContext()
public java.util.Collection<InhabitantsScanner> getInhabitantsScanners()
InhabitantsScanner
s being maintainedprotected void addInhabitantsScanner(java.lang.String name, InhabitantsScanner is)
public void parse(java.io.File f) throws java.io.IOException
java.io.IOException
protected void parseAlways(org.glassfish.hk2.classmodel.reflect.Parser parser, java.io.File f) throws java.io.IOException
java.io.IOException
public void close()
close
in interface java.io.Closeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |