ILcyLucyEnv
contains several methods for interacting with Lucy add-ons:
-
getAddOn
retrieves the add-on at a given index. -
getAddOnCount
returns the number of loaded add-ons. -
retrieveAddOnByClass
retrieves the actual instance of an add-on given its class. -
retrieveAddOnByClassName
retrieves the actual instance of an add-on given its class name. This prevents that the class needs to be loaded by the Java Virtual Machine if it was not yet loaded. -
addAddOnContainerListener
adds a listener toILcyLucyEnv
that is notified when a new add-on is loaded or removed. This way, an add-on can wait for another add-on to load before it adds its own functionality to Lucy. This is useful when you need to add functionality to the other add-on.