public abstract class AbstractAddonManager extends 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,
List<?> args) |
GriffonAddon |
findAddon(String name)
Finds an addon by name.
|
Map<String,GriffonAddon> |
getAddons()
Returns a read-only view of all available addons
|
protected Map<String,GriffonAddon> |
getAddonsInternal() |
GriffonApplication |
getApplication() |
void |
initialize() |
protected Map<String,GriffonAddon> |
preloadAddons() |
@Inject public AbstractAddonManager(@Nonnull GriffonApplication application)
@Nonnull public GriffonApplication getApplication()
@Nonnull public Map<String,GriffonAddon> getAddons()
AddonManager
getAddons
in interface AddonManager
@Nullable public GriffonAddon findAddon(@Nonnull 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 Map<String,GriffonAddon> preloadAddons()
protected void addMVCGroups(@Nonnull GriffonAddon addon)
@Nonnull protected Map<String,GriffonAddon> getAddonsInternal()
protected void event(@Nonnull ApplicationEvent evt)
protected void event(@Nonnull ApplicationEvent evt, @Nonnull List<?> args)