Package com.bc.ceres.core
Class ExtensibleObject
- java.lang.Object
-
- com.bc.ceres.core.ExtensibleObject
-
- All Implemented Interfaces:
Extensible
- Direct Known Subclasses:
AbstractSelection
,AbstractSelectionContext
,DefaultFigureEditor
,FigureSelectionContext
,Layer
,LayerType
,ProductNode
public class ExtensibleObject extends Object implements Extensible
Base class for an object that can be dynamically extended.- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description ExtensibleObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E> E
getExtension(Class<E> extensionType)
Gets the extension for this object corresponding to a specified extension type.
-
-
-
Method Detail
-
getExtension
public <E> E getExtension(Class<E> extensionType)
Gets the extension for this object corresponding to a specified extension type.The default implementation is
return ExtensionManager.getInstance().getExtension(this, extensionType);
- Specified by:
getExtension
in interfaceExtensible
- Parameters:
extensionType
- the extension type.- Returns:
- the extension for this object corresponding to the specified type.
- See Also:
ExtensionManager
-
-