Class OcflExtensionRegistry

    • Method Detail

      • register

        public static void register​(String extensionId,
                                    Class<? extends OcflExtension> extensionClass)
        Registers a new extension implementation.
        Parameters:
        extensionId - the id of the extension to register
        extensionClass - the class that implements the
      • remove

        public static void remove​(String extensionName)
        Removes an extension from the registry.
        Parameters:
        extensionName - the name of the extension to remove
      • lookup

        public static <T extends OcflExtensionOptional<T> lookup​(String extensionName)
        Returns a registered extension implementation, if one exists.
        Type Parameters:
        T - the extension class
        Parameters:
        extensionName - the name of the extension to load
        Returns:
        the extension