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
ConstructorsModifierConstructorDescriptionprotectedDeprecated.Creates a newALcyDefaultAddOn. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDecodeAddOn(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.voidfinalizeInitialization(ILcyLucyEnv aLucyEnv) Deprecated.initialize and finalizeInitialization are both replaced by one method: plugIntovoidinitialize(ILcyLucyEnv aLucyEnv, String aConfigSourceName) Deprecated.initialize and finalizeInitialization are both replaced by one method: plugIntovoidplugInto(ILcyLucyEnv aLucyEnv) Deprecated.Override this method and don't call super to init your addon.voidterminate(ILcyLucyEnv aLucyEnv) Deprecated.Has been replaced by unplugFromvoidunplugFrom(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:
unplugFromin classALcyAddOn- Parameters:
aLucyEnv- The Lucy environment to unplug from.- See Also:
-
canDecodeAddOn
Deprecated.Description copied from interface:ILcyAddOnDecoderReturns true if this decoder can decode the addon represented by the given string.- Specified by:
canDecodeAddOnin 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:ILcyAddOnDecoderDecodes 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:
decodeAddOnin 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:
-
ILcyAddOnDecoderto the plugInto method