java.lang.Object
org.glassfish.hk2.classmodel.reflect.Parser
- All Implemented Interfaces:
Closeable,AutoCloseable
Parse jar files or directories and create the model for any classes found.
- Author:
- Jerome Dochez
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawaitTermination(int timeOut, TimeUnit unit) voidclose()Returns the context this parser instance was initialized with during the call toParser(ParsingContext)voidparse(ArchiveAdapter source, Runnable doneHook) Parse the archive adapter entries and run the runnable hook on completion.
-
Field Details
-
DEFAULT_WAIT_SYSPROP
- See Also:
-
-
Constructor Details
-
Parser
-
-
Method Details
-
awaitTermination
- Throws:
InterruptedException
-
awaitTermination
- Throws:
InterruptedException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
parse
- Throws:
IOException
-
parse
Parse the archive adapter entries and run the runnable hook on completion.- Parameters:
source- the archive adapter to parsedoneHook- the runnable hook to run after completion- Returns:
- the future object to monitor the result of the parsing.
- Throws:
IOException- thrown by the source archive adapter when accessing entries
-
getContext
Returns the context this parser instance was initialized with during the call toParser(ParsingContext)- Returns:
- the parsing context this parser uses to store the parsing activities results.
-