Interface ScriptTransformer
- All Superinterfaces:
ScriptProcessor
ScriptTransformer is an extension to the script processor which operates on script collections.-
Field Summary
Fields inherited from interface com.adobe.granite.ui.clientlibs.script.ScriptProcessor
FEATURE_MINIFY -
Method Summary
Modifier and TypeMethodDescriptionprocess(HtmlLibrary library, Collection<ScriptResource> sources, Map<String, String> options) Processes the given input using the options.Methods inherited from interface com.adobe.granite.ui.clientlibs.script.ScriptProcessor
getName, handles, process
-
Method Details
-
process
@Nonnull Collection<ScriptResource> process(@Nonnull HtmlLibrary library, @Nonnull Collection<ScriptResource> sources, @Nonnull Map<String, String> options) throws IOExceptionProcesses the given input using the options.- Parameters:
library- the library that is processedsources- input sourcesoptions- processing options.- Returns:
- The processed sources or
sourcesif not modified. - Throws:
IOException- if an I/O error occurs
-