Class CSSFX.CSSFXConfig

  • Enclosing class:
    CSSFX

    public static class CSSFX.CSSFXConfig
    extends Object
    Stores information before finally building/starting the CSS monitoring.
    Author:
    Matthieu Brouillard
    • Method Detail

      • noDefaultConverters

        public CSSFX.CSSFXConfig noDefaultConverters()
        Empty the list of default converters. Especially usefull for testing purposes where full control of the converters is required.
        Returns:
        a CSSFX.CSSFXConfig object as a builder to allow further configuration
      • addConverter

        public CSSFX.CSSFXConfig addConverter​(URIToPathConverter converter)
        Register a new converter that will be used to map CSS resources to local file.
        Parameters:
        converter - an additional converter to use, ignored if null
        Returns:
        a CSSFX.CSSFXConfig object as a builder to allow further configuration
      • start

        public Runnable start()
        Start monitoring CSS resources with the config parameters collected until now.
        Returns:
        a Runnable object to stop CSSFX monitoring