Class ComponentGenerator


  • public class ComponentGenerator
    extends Object
    Uses a component to generate the component output and then postprocesses this output.
    Author:
    mtaal
    See Also:
    Component.generate(), JSCompressor
    • Constructor Detail

      • ComponentGenerator

        public ComponentGenerator()
    • Method Detail

      • generate

        public String generate​(Component component)
        Calls Component.generate() and optionally compresses the output. Compressing is done if the module of the component (Component.getModule()) is not in development.
        Parameters:
        component - the component to generate javascript for
        Returns:
        generated and compressed javascript.