Package net.shibboleth.profile.plugin
Class AbstractPlugin<T extends Module>
java.lang.Object
net.shibboleth.profile.plugin.AbstractPlugin<T>
- Type Parameters:
T- What sort of module this could implement
- All Implemented Interfaces:
Plugin<T>
- Direct Known Subclasses:
PropertyDrivenPlugin
A base class implementing
Plugin that defaults common settings.- Since:
- 9.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.profile.plugin.Plugin
Plugin.Package -
Field Summary
FieldsModifier and TypeFieldDescriptionModules to disable on removal.Modules to enable on install.private List<Plugin.Package>Packages to unpack. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the modules to disable after plugin removal.Get the modules to enable after plugin installation or upgrade.Return the classpath location of the license file to emit when --license is specified.Get the things to explicitly install.intReturn The patch version, (as defined by the Java Product Version Policy.Return the unique identifier for the plugin.Get the IDs of anyModules required for installation of this plugin.inthashCode()protected voidsetDisableOnRemoval(Set<T> modules) Set the modules to disable on removal.protected voidsetEnableOnInstall(Set<T> modules) Set the modules to enable on install.voidsetPackages(Collection<Plugin.Package> input) Set the packages to transfertoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.shibboleth.profile.plugin.Plugin
getMajorVersion, getMinorVersion, getModuleInfoSources, getUpdateURLs
-
Field Details
-
enableModules
Modules to enable on install. -
disableModules
Modules to disable on removal. -
packages
Packages to unpack.
-
-
Constructor Details
-
AbstractPlugin
public AbstractPlugin()Constructor.
-
-
Method Details
-
getPluginId
Return the unique identifier for the plugin. This name MUST be- renderable in all file systems (for instance alphanumerics, '-' and '.' only)
- unique. This is best done using java module guidance
org.example.plugins.myplugin- Specified by:
getPluginIdin interfacePlugin<T extends Module>- Returns:
- The id of this plugin.
-
getPatchVersion
@Nonnegative public int getPatchVersion()Return The patch version, (as defined by the Java Product Version Policy.- Specified by:
getPatchVersionin interfacePlugin<T extends Module>- Returns:
- The patch version.
-
getRequiredModules
Get the IDs of anyModules required for installation of this plugin.- Specified by:
getRequiredModulesin interfacePlugin<T extends Module>- Returns:
- module IDs that are required
-
getEnableOnInstall
Get the modules to enable after plugin installation or upgrade.- Specified by:
getEnableOnInstallin interfacePlugin<T extends Module>- Returns:
- modules to enable
-
getLicenseFileLocation
Return the classpath location of the license file to emit when --license is specified.- Specified by:
getLicenseFileLocationin interfacePlugin<T extends Module>- Returns:
- the location
-
setEnableOnInstall
Set the modules to enable on install.- Parameters:
modules- modules to enable
-
getDisableOnRemoval
Get the modules to disable after plugin removal.- Specified by:
getDisableOnRemovalin interfacePlugin<T extends Module>- Returns:
- modules to disable
-
setDisableOnRemoval
Set the modules to disable on removal.- Parameters:
modules- modules to disable
-
getPackages
Get the things to explicitly install.- Specified by:
getPackagesin interfacePlugin<T extends Module>- Returns:
- what to install
-
setPackages
Set the packages to transfer- Parameters:
input- what to set
-
equals
-
hashCode
public int hashCode() -
toString
-