public class StatusReporterAdapter extends AbstractLegacyAdapter<StatusReporter,StatusReporter>
StatusReporter and
StatusReporter
Delegation is maintained by two WeakHashTables. See AbstractLegacyAdapter
Functionally, the delegation is handled in the nested classes - one for wrapping from ome.scifio.common.StatusReporter to loci.common.StatusReporter, and one for the reverse direction.
| Modifier and Type | Class and Description |
|---|---|
static class |
StatusReporterAdapter.LegacyWrapper
This class can be used to wrap loci.common.StatusReporter
objects and be passed to API expecting an ome.scifio.common.StatusReporter
object.
|
static class |
StatusReporterAdapter.ModernWrapper
This class can be used to wrap ome.scifio.common.StatusReporter
objects and be passed to API expecting a loci.common.StatusReporter
object.
|
| Constructor and Description |
|---|
StatusReporterAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected StatusReporter |
wrapToLegacy(StatusReporter modern)
Used Wraps the given modern object to a new instance of its legacy equivalent.
|
protected StatusReporter |
wrapToModern(StatusReporter legacy)
Wraps the given legacy object to a new instance of its modern equivalent.
|
clear, getLegacy, getModernprotected StatusReporter wrapToLegacy(StatusReporter modern)
AbstractLegacyAdapterThis 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<StatusReporter,StatusReporter>modern - - An instance of the modern class.protected StatusReporter wrapToModern(StatusReporter legacy)
AbstractLegacyAdapterThis 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<StatusReporter,StatusReporter>legacy - - An instance of the legacy class.Copyright © 2014 Open Microscopy Environment