Class AbstractUriScannerPlugin<R>
java.lang.Object
com.buschmais.jqassistant.plugin.common.api.scanner.AbstractScannerPlugin<URI,URIDescriptor>
com.buschmais.jqassistant.plugin.common.impl.scanner.AbstractUriScannerPlugin<R>
- Type Parameters:
R- The resource type represented by the URI and to be passed to subsequent scanners .
- All Implemented Interfaces:
ScannerPlugin<URI,,URIDescriptor> com.buschmais.jqassistant.core.shared.lifecycle.ContextualConfigurableLifecycleAware<ScannerContext,,Map<String, Object>> com.buschmais.jqassistant.core.shared.lifecycle.LifecycleAware
- Direct Known Subclasses:
DefaultUriScannerPlugin,PluginUriScannerPlugin
Abstract base class for URI scanners.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.buschmais.jqassistant.core.scanner.api.ScannerPlugin
ScannerPlugin.Requires -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResource(URI uri, ScannerContext context) Get the resource identified by theURI.getType()resolve(URI uri, Supplier<R> resourceSupplier, ScannerContext context) Convenience method for sub-classes to resolve aURIresource uniquely, i.e. only provide a resource if there's no matchingURIDescriptorin the store.final URIDescriptorMethods inherited from class com.buschmais.jqassistant.plugin.common.api.scanner.AbstractScannerPlugin
configure, configure, equals, getBooleanProperty, getDirectoryPath, getName, getProperties, getProperty, getScannerContext, getStringProperty, getTypeParameter, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.buschmais.jqassistant.core.scanner.api.ScannerPlugin
accepts, destroy, initialize
-
Constructor Details
-
AbstractUriScannerPlugin
public AbstractUriScannerPlugin()
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceScannerPlugin<URI,URIDescriptor> - Overrides:
getTypein classAbstractScannerPlugin<URI,URIDescriptor>
-
getDescriptorType
- Specified by:
getDescriptorTypein interfaceScannerPlugin<URI,URIDescriptor> - Overrides:
getDescriptorTypein classAbstractScannerPlugin<URI,URIDescriptor>
-
scan
public final URIDescriptor scan(URI uri, String path, Scope scope, Scanner scanner) throws IOException - Throws:
IOException
-
getResource
Get the resource identified by theURI.- Parameters:
uri- TheURIcontext- TheScannerContext.- Returns:
- The resource.
- Throws:
IOException- If the resource cannot be opened.
-
resolve
Convenience method for sub-classes to resolve aURIresource uniquely, i.e. only provide a resource if there's no matchingURIDescriptorin the store.- Parameters:
uri- TheURI.resourceSupplier- The resourceSupplier. TheSupplieris allowed to return anullvalue.context- TheScannerContext.- Returns:
- An
Optionalrepresenting the URI resource to be scanned.
-