public class StatusListenerAdapter extends AbstractLegacyAdapter<StatusListener,StatusListener>
StatusListener
and
StatusListener
Delegation is maintained by two WeakHashTables. See AbstractLegacyAdapter
Functionally, the delegation is handled in the nested classes - one for wrapping from ome.scifio.common.StatusListener to loci.common.StatusListener, and one for the reverse direction.
r the reverse direction.Modifier and Type | Class and Description |
---|---|
static class |
StatusListenerAdapter.LegacyWrapper
This class can be used to wrap loci.common.StatusListener
objects and be passed to API expecting an ome.scifio.common.StatusListener
object.
|
static class |
StatusListenerAdapter.ModernWrapper
This class can be used to wrap ome.scifio.common.StatusListener
objects and be passed to API expecting a loci.common.StatusListener
object.
|
Constructor and Description |
---|
StatusListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
protected StatusListener |
wrapToLegacy(StatusListener modern)
Used Wraps the given modern object to a new instance of its legacy equivalent.
|
protected StatusListener |
wrapToModern(StatusListener legacy)
Wraps the given legacy object to a new instance of its modern equivalent.
|
clear, getLegacy, getModern
protected StatusListener wrapToLegacy(StatusListener modern)
AbstractLegacyAdapter
This is a "stupid" operation that always wraps to a new instance.
This method must be defined at the concrete implementation level as it requires knowledge of a specific class that extends L but is capable of wrapping M. Doing so reduces code/logic repetition by maintaining a single getLegacy implementation.
wrapToLegacy
in class AbstractLegacyAdapter<StatusListener,StatusListener>
modern
- - An instance of the modern class.protected StatusListener wrapToModern(StatusListener legacy)
AbstractLegacyAdapter
This is a "stupid" operation that always wraps to a new instance.
This method must be defined at the concrete implementation level as it requires knowledge of a specific class that extends M but is capable of wrapping L. Doing so reduces code/logic repetition by maintaining a single getModern implementation.
wrapToModern
in class AbstractLegacyAdapter<StatusListener,StatusListener>
legacy
- - An instance of the legacy class.Copyright © 2014 Open Microscopy Environment