Class ExtensibleObject

    • Constructor Detail

      • ExtensibleObject

        public ExtensibleObject()
    • 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 interface Extensible
        Parameters:
        extensionType - the extension type.
        Returns:
        the extension for this object corresponding to the specified type.
        See Also:
        ExtensionManager