public class AddOnManager extends IzouModule implements AddonThreadPoolUser
log, main| Constructor and Description |
|---|
AddOnManager(Main main) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAddOnsWithoutRegistering(List<AddOnModel> addOns)
Adds AddOns without registering them.
|
void |
addAndRegisterAddOns(List<AddOnModel> addOns)
registers all AddOns.
|
void |
addAspectOrAffected(ro.fortsoft.pf4j.AspectOrAffected aspectOrAffected)
adds an aspect-class url to the list.
|
void |
addInitializedListener(Runnable runnable)
adds an listener to the initialized state (all addons registered).
|
Optional<AddOnModel> |
getAddOnForClassLoader(ClassLoader classLoader)
returns the addOn loaded from the ClassLoader
|
Optional<ro.fortsoft.pf4j.PluginWrapper> |
getPluginWrapper(AddOnModel addOnModel)
returns the (optional) PluginWrapper for the AddonModel.
|
boolean |
loadedThroughPF4J(AddOnModel addOnModel)
checks whether the AddOn was loaded through pf4j
|
void |
registerAllAddOns(IdentifiableSet<AddOnModel> addOns) |
void |
retrieveAndRegisterAddOns()
retrieves and registers all AddOns.
|
debug, debug, error, error, fatal, fatal, getID, getMainclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsubmit, submit, timeOutdebug, debug, error, error, fatal, fatal, getMainisOwnerpublic AddOnManager(Main main)
public void retrieveAndRegisterAddOns()
public void addAddOnsWithoutRegistering(List<AddOnModel> addOns)
addOns - a List containing all the AddOnspublic void addAndRegisterAddOns(List<AddOnModel> addOns)
addOns - a List containing all the AddOnspublic void registerAllAddOns(IdentifiableSet<AddOnModel> addOns)
public Optional<AddOnModel> getAddOnForClassLoader(ClassLoader classLoader)
classLoader - the classLoaderpublic Optional<ro.fortsoft.pf4j.PluginWrapper> getPluginWrapper(AddOnModel addOnModel)
addOnModel - the AddOnModelpublic boolean loadedThroughPF4J(AddOnModel addOnModel)
addOnModel - the AddOnModel to checkpublic void addAspectOrAffected(ro.fortsoft.pf4j.AspectOrAffected aspectOrAffected)
aspectOrAffected - the aspect or affected to addpublic void addInitializedListener(Runnable runnable)
runnable - the runnable to addCopyright © 2016. All rights reserved.