public abstract class AbstractPreloadedPluginScanner extends Object implements PluginContentScanner
PluginContentScanner.ExtensionMetaData
Modifier and Type | Field and Description |
---|---|
protected Plugin.ApiType |
apiType |
protected String |
pluginName |
protected String |
pluginVersion |
protected Set<Class<?>> |
preloadedClasses |
EMPTY
Constructor and Description |
---|
AbstractPreloadedPluginScanner(String pluginName,
String pluginVersion,
Set<Class<?>> preloadedClasses,
Plugin.ApiType apiType) |
Modifier and Type | Method and Description |
---|---|
Manifest |
getManifest()
Return the plugin meta-data manifest
|
Map<Class<? extends Annotation>,Iterable<PluginContentScanner.ExtensionMetaData>> |
scan(String pluginName,
Iterable<Class<? extends Annotation>> annotations)
Scans the plugin for declared public annotated classes
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
entries, getEntry, getInputStream
protected final String pluginName
protected final String pluginVersion
protected final Plugin.ApiType apiType
public AbstractPreloadedPluginScanner(String pluginName, String pluginVersion, Set<Class<?>> preloadedClasses, Plugin.ApiType apiType)
public Manifest getManifest() throws IOException
PluginContentScanner
getManifest
in interface PluginContentScanner
IOException
- if an I/O problem occurred whilst accessing the Manifestpublic Map<Class<? extends Annotation>,Iterable<PluginContentScanner.ExtensionMetaData>> scan(String pluginName, Iterable<Class<? extends Annotation>> annotations) throws InvalidPluginException
PluginContentScanner
scan
in interface PluginContentScanner
pluginName
- the plugin nameannotations
- annotations declared by the plugin classesInvalidPluginException
- if the plugin is not valid or corrupted