public abstract class AbstractScannerPlugin<I,D extends com.buschmais.jqassistant.core.store.api.model.Descriptor> extends Object implements com.buschmais.jqassistant.core.scanner.api.ScannerPlugin<I,D>
<p>Abstract base implementation of a ScannerPlugin.</p>
| Constructor and Description |
|---|
AbstractScannerPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure()
<p>Convenience method which might be overridden by sub-classes.
|
void |
configure(com.buschmais.jqassistant.core.scanner.api.ScannerContext scannerContext,
Map<String,Object> properties) |
boolean |
equals(Object obj) |
protected Boolean |
getBooleanProperty(String name,
Boolean defaultValue)
<p>Get a property as boolean.
|
Class<D> |
getDescriptorType() |
protected String |
getDirectoryPath(File directory,
File entry)
<p>Return the relative path of a file within a directory.
|
String |
getName() |
protected Map<String,Object> |
getProperties()
<p>Get all properties.
|
protected <T> T |
getProperty(String name,
Class<T> type)
<p>Get the value of a property.
|
protected com.buschmais.jqassistant.core.scanner.api.ScannerContext |
getScannerContext()
<p>Return the scanner context.
|
protected String |
getStringProperty(String name,
String defaultValue)
<p>Get a property as string.
|
Class<? extends I> |
getType() |
protected <T> Class<T> |
getTypeParameter(Class<?> expectedSuperClass,
int genericTypeParameterIndex)
<p>Determines the type parameter for a generic super class.
|
int |
hashCode() |
public final void configure(com.buschmais.jqassistant.core.scanner.api.ScannerContext scannerContext,
Map<String,Object> properties)
configure in interface com.buschmais.jqassistant.core.scanner.api.ScannerPlugin<I,D extends com.buschmais.jqassistant.core.store.api.model.Descriptor>configure in interface com.buschmais.jqassistant.core.shared.lifecycle.ContextualConfigurableLifecycleAware<com.buschmais.jqassistant.core.scanner.api.ScannerContext,Map<String,Object>>protected void configure()
<p>Convenience method which might be overridden by sub-classes.</p>
public String getName()
protected <T> Class<T> getTypeParameter(Class<?> expectedSuperClass, int genericTypeParameterIndex)
<p>Determines the type parameter for a generic super class.</p>
expectedSuperClass - The generic super class.genericTypeParameterIndex - The index, e.g. 0 for the first.protected Map<String,Object> getProperties()
<p>Get all properties.</p>
protected <T> T getProperty(String name, Class<T> type)
<p>Get the value of a property.</p>
T - The type.name - The name of the property.type - The expected type.protected String getStringProperty(String name, String defaultValue)
<p>Get a property as string.</p>
name - The name.defaultValue - The default value.protected Boolean getBooleanProperty(String name, Boolean defaultValue)
<p>Get a property as boolean.</p>
name - The name.defaultValue - The default value.protected com.buschmais.jqassistant.core.scanner.api.ScannerContext getScannerContext()
<p>Return the scanner context.</p>
protected String getDirectoryPath(File directory, File entry)
<p>Return the relative path of a file within a directory.</p>
directory - The directory.entry - The file.Copyright © 2016–2021 jQAssistant Development Team. All rights reserved.