Class DefaultScriptFactoryManager

    • Constructor Detail

      • DefaultScriptFactoryManager

        public DefaultScriptFactoryManager()
    • Method Detail

      • registerFactory

        public ScriptFactory registerFactory​(String mimeType,
                                             ScriptFactory factory)
        Registers a given mimeType for the given ScriptFactory.
        Parameters:
        mimeType - registered MIME type
        factory - factory to use for the given type
        Returns:
        the previous registered factory (if any)
      • unregisterFactory

        public ScriptFactory unregisterFactory​(String mimeType)
        Un-registers the factory for the given mimeType.
        Parameters:
        mimeType - MIME type to un-register
        Returns:
        the removed factory (if any)