Class PluginManager.PluginInfo
java.lang.Object
de.iip_ecosphere.platform.support.plugins.PluginManager.PluginInfo
- Enclosing class:
PluginManager
Collects information about a plugin.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Fileprivate intprivate Supplier<PluginSetupDescriptor> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePluginInfo(File file, Supplier<PluginSetupDescriptor> supplier, int sequenceNr, List<String> pluginIds) Creates an instance.privatePluginInfo(Supplier<PluginSetupDescriptor> supplier) Creates an instance for local setup descriptors. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of the plugin.intReturns the initial loading sequence number.booleanReturns whether this plugin has dependent plugin ids.
-
Field Details
-
sequenceNr
private int sequenceNr -
file
-
supplier
-
pluginIds
-
-
Constructor Details
-
PluginInfo
Creates an instance for local setup descriptors.- Parameters:
supplier- the supplier to create the descriptor
-
PluginInfo
private PluginInfo(File file, Supplier<PluginSetupDescriptor> supplier, int sequenceNr, List<String> pluginIds) Creates an instance.- Parameters:
file- the file path to the pluginsupplier- the setup descriptor suppliersequenceNr- the indicative plugin loading sequence numberpluginIds- the dependent plugin ids to be considered, may be null
-
-
Method Details
-
getName
Returns the name of the plugin.- Returns:
- the name
-
getSequenceNr
public int getSequenceNr()Returns the initial loading sequence number.- Returns:
- the initial sequence number
-
hasPluginIds
public boolean hasPluginIds()Returns whether this plugin has dependent plugin ids.- Returns:
truefor dependent plugin ids,falseelse
-