Interface ScriptTransformer
-
- All Superinterfaces:
ScriptProcessor
@ConsumerType public interface ScriptTransformer extends ScriptProcessor
ScriptTransformeris 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 Collection<ScriptResource>process(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 Detail
-
process
@Nonnull Collection<ScriptResource> process(@Nonnull HtmlLibrary library, @Nonnull Collection<ScriptResource> sources, @Nonnull Map<String,String> options) throws IOException
Processes 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
-
-