Package com.luciad.lucy.addons
Class ALcyDefaultAddOn
java.lang.Object
com.luciad.lucy.addons.ALcyAddOn
com.luciad.lucy.addons.ALcyDefaultAddOn
- All Implemented Interfaces:
ILcyAddOnDecoder
Deprecated.
Extension of ALcyAddOn that implements some methods in a default way.
To write your own addon, you will have to override plugInto and unplugFrom without calling the super class. The plugInto method should set up the addon properly, the unplugFrom method should undo all operations performed by the plugInto method.
Note: As the ILcyAddOnDecoder
interface does not add any real
value, it is sufficient to extend the abstract class ALcyAddOn
and implement the methods
ALcyAddOn.plugInto(com.luciad.lucy.ILcyLucyEnv)
and ALcyAddOn.unplugFrom(com.luciad.lucy.ILcyLucyEnv)
. This class is here
only for backwards compatibility. If you want to write your own addon, please extend
ALcyAddOn
instead of this class.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Deprecated.Creates a newALcyDefaultAddOn
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canDecodeAddOn
(String aConfigSourceName) Deprecated.Returns true if this decoder can decode the addon represented by the given string.decodeAddOn
(String aConfigSourceName) Deprecated.Decodes an addon given the config source name.void
finalizeInitialization
(ILcyLucyEnv aLucyEnv) Deprecated.initialize and finalizeInitialization are both replaced by one method: plugIntovoid
initialize
(ILcyLucyEnv aLucyEnv, String aConfigSourceName) Deprecated.initialize and finalizeInitialization are both replaced by one method: plugIntovoid
plugInto
(ILcyLucyEnv aLucyEnv) Deprecated.Override this method and don't call super to init your addon.void
terminate
(ILcyLucyEnv aLucyEnv) Deprecated.Has been replaced by unplugFromvoid
unplugFrom
(ILcyLucyEnv aLucyEnv) Deprecated.Override this method and don't call super to tear down your addon.Methods inherited from class com.luciad.lucy.addons.ALcyAddOn
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
-
Constructor Details
-
ALcyDefaultAddOn
protected ALcyDefaultAddOn()Deprecated.Creates a newALcyDefaultAddOn
.
-
-
Method Details
-
terminate
Deprecated.Has been replaced by unplugFromTerminates this add-on.- Parameters:
aLucyEnv
- The Lucy environment.- See Also:
-
initialize
Deprecated.initialize and finalizeInitialization are both replaced by one method: plugIntoInitializes this add-on.- Parameters:
aLucyEnv
- The Lucy environment.aConfigSourceName
- The source name of the configuration.- See Also:
-
finalizeInitialization
Deprecated.initialize and finalizeInitialization are both replaced by one method: plugIntoPerforms the second-pass initialization of this add-on.- Parameters:
aLucyEnv
- The Lucy environment.- See Also:
-
plugInto
Deprecated.Override this method and don't call super to init your addon. -
unplugFrom
Deprecated.Override this method and don't call super to tear down your addon.- Specified by:
unplugFrom
in classALcyAddOn
- Parameters:
aLucyEnv
- The Lucy environment to unplug from.- See Also:
-
canDecodeAddOn
Deprecated.Description copied from interface:ILcyAddOnDecoder
Returns true if this decoder can decode the addon represented by the given string.- Specified by:
canDecodeAddOn
in interfaceILcyAddOnDecoder
- Parameters:
aConfigSourceName
- The string that represents the addon.- Returns:
- True if an addon can be decoded for the given config source name, false otherwise.
- See Also:
-
decodeAddOn
Deprecated.Description copied from interface:ILcyAddOnDecoder
Decodes an addon given the config source name. The config source name can be anything: a file name, an url, a database access descriptor. However implementations might choose to only support a certain type- Specified by:
decodeAddOn
in interfaceILcyAddOnDecoder
- Parameters:
aConfigSourceName
- The string that represents the addon.- Returns:
- The decoded addon.
- Throws:
IOException
- In case any io exceptions occur during the decoding.- See Also:
-
ILcyAddOnDecoder
to the plugInto method