public static class ParsingContext.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 instancepublic ParsingContext.Builder executorService(ExecutorService service)
service
- the executor service to be used during the parsing
activitypublic 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 activitylocator
- a resource locator instancepublic ParsingContext.Builder config(ParsingConfig config)
config
- the config instancepublic ParsingContext build()
Copyright © 2009–2023 Oracle Corporation. All rights reserved.