@Singleton @Named(value="repositorySearch") public class RepositorySearchExposer extends Object implements JarIdentificationExposer
Constructor and Description |
---|
RepositorySearchExposer(RepositoryHashSearch repositoryHashSearch,
JarHashAnalyzer fileHashAnalyzer,
JarHashAnalyzer bytecodeHashAnalyzer) |
Modifier and Type | Method and Description |
---|---|
void |
expose(JarIdentification identification,
JarAnalyzer jarAnalyzer)
Expose metadata during the identification process.
|
@Inject public RepositorySearchExposer(RepositoryHashSearch repositoryHashSearch, @Named(value="file") JarHashAnalyzer fileHashAnalyzer, @Named(value="bytecode") JarHashAnalyzer bytecodeHashAnalyzer)
public void expose(JarIdentification identification, JarAnalyzer jarAnalyzer)
JarIdentificationExposer
expose
in interface JarIdentificationExposer
identification
- the identification record to populate with the exposed metadatajarAnalyzer
- the JAR to obtain the information from. Should be treated as read only, with the exception
of caching the metadata if it would be identical when run over the same file again.Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.