public abstract class AbstractAddonManager extends java.lang.Object implements AddonManager
AddonManager
interface.Constructor and Description |
---|
AbstractAddonManager(GriffonApplication application) |
Modifier and Type | Method and Description |
---|---|
protected void |
addMVCGroups(GriffonAddon addon) |
protected void |
doInitialize() |
protected void |
event(ApplicationEvent evt) |
protected void |
event(ApplicationEvent evt,
java.util.List<?> args) |
GriffonAddon |
findAddon(java.lang.String name)
Finds an addon by name.
|
java.util.Map<java.lang.String,GriffonAddon> |
getAddons()
Returns a read-only view of all available addons
|
protected java.util.Map<java.lang.String,GriffonAddon> |
getAddonsInternal() |
GriffonApplication |
getApplication() |
void |
initialize() |
protected java.util.Map<java.lang.String,GriffonAddon> |
preloadAddons() |
@Inject public AbstractAddonManager(@Nonnull GriffonApplication application)
@Nonnull public GriffonApplication getApplication()
@Nonnull public java.util.Map<java.lang.String,GriffonAddon> getAddons()
AddonManager
getAddons
in interface AddonManager
@Nullable public GriffonAddon findAddon(@Nonnull java.lang.String name)
AddonManager
Example: findAddon("miglayout") will return a GriffonAddon that represents the contributions of the MigLayout plugin.
findAddon
in interface AddonManager
name
- the name of the addon to search forpublic final void initialize()
initialize
in interface AddonManager
protected void doInitialize()
@Nonnull protected java.util.Map<java.lang.String,GriffonAddon> preloadAddons()
protected void addMVCGroups(@Nonnull GriffonAddon addon)
@Nonnull protected java.util.Map<java.lang.String,GriffonAddon> getAddonsInternal()
protected void event(@Nonnull ApplicationEvent evt)
protected void event(@Nonnull ApplicationEvent evt, @Nonnull java.util.List<?> args)