|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glassfish.hk2.classmodel.reflect.ParsingContext.Builder
public static class ParsingContext.Builder
Context builder
Constructor Summary | |
---|---|
ParsingContext.Builder()
|
Method Summary | |
---|---|
ParsingContext.Builder |
archiveSelector(ArchiveSelector selector)
Sets the archive selector that can selects which jar should be parsed during the parsing activity. |
ParsingContext |
build()
Build the final ParsingContext with the provided configuration. |
ParsingContext.Builder |
config(ParsingConfig config)
Sets the parsing config that can be used to select which types should be exhaustively visited (fields + methods visits) or not. |
ParsingContext.Builder |
executorService(ExecutorService service)
Sets the executor service to be used to spawn threads during the parsing activity. |
ParsingContext.Builder |
locator(ResourceLocator locator)
Sets the resource locator that can be used to load and parse extra types that were referenced during the parsing but could not be parsed due to their absence from the input archive set. |
Logger |
logger()
Returns the configured or default logger for the class-model library. |
ParsingContext.Builder |
logger(Logger logger)
Sets the logger to be used during the parsing activity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParsingContext.Builder()
Method Detail |
---|
public Logger logger()
logger(java.util.logging.Logger)
method, either
using the default logger for this library.public ParsingContext.Builder logger(Logger logger)
logger
- a logger instance
public ParsingContext.Builder executorService(ExecutorService service)
service
- the executor service to be used during the parsing
activity
public ParsingContext.Builder archiveSelector(ArchiveSelector selector)
selector
- the archive selector.
public ParsingContext.Builder locator(ResourceLocator locator)
ResourceLocator
to give a chance to the caller to selectively
add such unvisited types to the parsing activity
locator
- a resource locator instance
public ParsingContext.Builder config(ParsingConfig config)
config
- the config instance
public ParsingContext build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |