Interface ScriptTransformer
-
- All Superinterfaces:
ScriptProcessor
@ConsumerType public interface ScriptTransformer extends 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<ScriptResource>
process(HtmlLibrary library, java.util.Collection<ScriptResource> sources, java.util.Map<java.lang.String,java.lang.String> options)
Processes the given input using the options.-
Methods inherited from interface com.adobe.granite.ui.clientlibs.script.ScriptProcessor
getName, handles, process
-
-
-
-
Method Detail
-
process
@Nonnull java.util.Collection<ScriptResource> process(@Nonnull HtmlLibrary library, @Nonnull java.util.Collection<ScriptResource> sources, @Nonnull java.util.Map<java.lang.String,java.lang.String> options) throws java.io.IOException
Processes the given input using the options.- Parameters:
library
- the library that is processedsources
- input sourcesoptions
- processing options.- Returns:
- The processed sources or
sources
if not modified. - Throws:
java.io.IOException
- if an I/O error occurs
-
-