D - the Dockable typeDATA - the DockableData typepublic class SimpleDockableDataManager<D,DATA extends DockableData> extends Object implements DockableDataManager<D,DATA>
DockableDataManager.
TODO: Thread-safe?| Constructor and Description |
|---|
SimpleDockableDataManager()
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
DATA |
getClassDockableData(D dockable)
Gets the registered
DockableData of the class of the specified Dockable. |
DATA |
getDockableData(D dockable)
Gets the registered
DockableData of the specified Dockable. |
void |
registerClassDockableData(Class<?> type,
DATA dockableData)
Registers the
DockableData for the specified type. |
void |
registerDockableData(D dockable,
DATA dockableData)
Registers the
DockableData for the specified Dockable. |
DATA |
unregisterClassDockableData(Class<?> type)
Unregisters the
DockableData for the specified type. |
DATA |
unregisterDockableData(D dockable)
Unregisters the
DockableData for the specified Dockable. |
public SimpleDockableDataManager()
public DATA getDockableData(D dockable)
DockableData of the specified Dockable.getDockableData in interface DockableDataManager<D,DATA extends DockableData>dockable - the Dockablepublic DATA getClassDockableData(D dockable)
DockableData of the class of the specified Dockable.getClassDockableData in interface DockableDataManager<D,DATA extends DockableData>dockable - the Dockablepublic void registerDockableData(D dockable, DATA dockableData)
DockableData for the specified Dockable.registerDockableData in interface DockableDataManager<D,DATA extends DockableData>dockable - the DockabledockableData - the DockableData to registerpublic DATA unregisterDockableData(D dockable)
DockableData for the specified Dockable.unregisterDockableData in interface DockableDataManager<D,DATA extends DockableData>dockable - the Dockablepublic void registerClassDockableData(Class<?> type, DATA dockableData)
DockableData for the specified type.
TODO: registerDefaultDockableData?registerClassDockableData in interface DockableDataManager<D,DATA extends DockableData>type - the typedockableData - the DockableData to registerpublic DATA unregisterClassDockableData(Class<?> type)
DockableData for the specified type.
TODO: unregisterDefaultDockableData?unregisterClassDockableData in interface DockableDataManager<D,DATA extends DockableData>type - the typeCopyright © 2012–2015 Drombler. All rights reserved.