ILcyAddOnDecoder
to the plugInto method@Deprecated public abstract class ALcyDefaultAddOn extends ALcyAddOn implementsILcyAddOnDecoder
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.
Modifier | Constructor and Description |
---|---|
protected |
ALcyDefaultAddOn()
Deprecated.
Creates a new
ALcyDefaultAddOn . |
Modifier and Type | Method and Description |
---|---|
boolean |
canDecodeAddOn(String aConfigSourceName)
Deprecated.
Returns true if this decoder can decode the addon represented by the given
string.
|
ALcyAddOn |
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: plugInto
|
void |
initialize(ILcyLucyEnv aLucyEnv,
String aConfigSourceName)
Deprecated.
initialize and finalizeInitialization are both replaced by one method: plugInto
|
void |
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 unplugFrom
|
void |
unplugFrom(ILcyLucyEnv aLucyEnv)
Deprecated.
Override this method and don't call super to tear down your addon.
|
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
protected ALcyDefaultAddOn()
ALcyDefaultAddOn
.@Deprecated public void terminate(ILcyLucyEnv aLucyEnv)
aLucyEnv
- The Lucy environment.unplugFrom(com.luciad.lucy.ILcyLucyEnv)
@Deprecated public void initialize(ILcyLucyEnv aLucyEnv, String aConfigSourceName)
aLucyEnv
- The Lucy environment.aConfigSourceName
- The source name of the configuration.plugInto(com.luciad.lucy.ILcyLucyEnv)
@Deprecated public void finalizeInitialization(ILcyLucyEnv aLucyEnv)
aLucyEnv
- The Lucy environment.plugInto(com.luciad.lucy.ILcyLucyEnv)
public void plugInto(ILcyLucyEnv aLucyEnv)
plugInto
in class ALcyAddOn
aLucyEnv
- The Lucy environment to plug into.ALcyAddOn.unplugFrom(com.luciad.lucy.ILcyLucyEnv)
public void unplugFrom(ILcyLucyEnv aLucyEnv)
unplugFrom
in class ALcyAddOn
aLucyEnv
- The Lucy environment to unplug from.ALcyAddOn.plugInto(com.luciad.lucy.ILcyLucyEnv)
public boolean canDecodeAddOn(String aConfigSourceName)
ILcyAddOnDecoder
canDecodeAddOn
in interface ILcyAddOnDecoder
aConfigSourceName
- The string that represents the addon.ILcyAddOnDecoder.decodeAddOn(java.lang.String)
public ALcyAddOn decodeAddOn(String aConfigSourceName) throws IOException
ILcyAddOnDecoder
decodeAddOn
in interface ILcyAddOnDecoder
aConfigSourceName
- The string that represents the addon.IOException
- In case any io exceptions occur during the decoding.ILcyAddOnDecoder.canDecodeAddOn(java.lang.String)