Interface CompilerConfiguration

  • All Known Implementing Classes:
    DefaultCompilerConfiguration

    public interface CompilerConfiguration
    Configuration of a compiler task.
    Since:
    2.0.0
    Author:
    Tony Chemit - dev@tchemit.fr
    • Field Detail

      • DEFAULT_CSS_EXTENSION

        static final String DEFAULT_CSS_EXTENSION
        Default css file extension.
        Since:
        2.28
        See Also:
        Constant Field Values
    • Method Detail

      • getClassLoader

        ClassLoader getClassLoader()
        Returns:
        the class loader used by compilers
      • getCompilerClass

        Class<? extends JAXXCompiler> getCompilerClass()
        Returns:
        the type of compiler to use
      • getDefaultDecoratorClass

        Class<? extends CompiledObjectDecorator> getDefaultDecoratorClass()
        Returns:
        the type of default decorator to use if none specified
      • getDefaultErrorUI

        Class<?> getDefaultErrorUI()
        Returns:
        the type of the default error UI to use for validation
      • getExtraImports

        String[] getExtraImports()
        Returns:
        extra imports to add on all generated jaxx object
      • getValidatorFactoryFQN

        String getValidatorFactoryFQN()
        Returns:
        the FQN of the validator factory used to instanciate new validators.
        Since:
        2.6
      • getJaxxContextClass

        Class<? extends JAXXContext> getJaxxContextClass()
        Returns:
        the type of context to use in each generated jaxx object
      • getOptimize

        boolean getOptimize()
        Returns whether or not optimization should be performed.
        Returns:
        whether or not optimizations should be performed
      • isAutoRecurseInCss

        boolean isAutoRecurseInCss()
        Returns whether or not should recurse in css for existing JAXX Object. Note: This functionnality was here at the beginning of the project but offers nothing very usefull, will be remove probably in JAXX 3.0.
        Returns:
        true if a css file with same name as jaxx file should be included in jaxx file if found.
        Since:
        2.0.2
      • getTargetDirectory

        File getTargetDirectory()
        Returns the target directory.
        Returns:
        the target directory
      • isAddLogger

        boolean isAddLogger()
        Returns:
        true if a logger must add on each generated jaxx object
      • isI18nable

        boolean isI18nable()
        Returns:
        true if we use the i18n system
      • isOptimize

        boolean isOptimize()
        Returns:
        true to generate optimized code
      • isProfile

        boolean isProfile()
        Returns:
        true if a profile pass must be done
      • isResetAfterCompile

        boolean isResetAfterCompile()
        Returns:
        true if states must be reset after the compilation
      • isUseUIManagerForIcon

        boolean isUseUIManagerForIcon()
        Returns:
        true if UIManager is used to retrieve icons
      • isVerbose

        boolean isVerbose()
        Returns:
        true if compiler is verbose
      • isShowClassDescriptorLoading

        boolean isShowClassDescriptorLoading()
        Returns:
        true to trace the Class descriptor loading.
        Since:
        2.4
      • isAddAutoHandlerUI

        boolean isAddAutoHandlerUI()
        Returns:
        true to detect and add UIHandler if found in class-path.
        Since:
        2.6
      • isDetectAction

        boolean isDetectAction()
        Returns:
        true to detect actions from convetion and link them to buttons.
        Since:
        3.0
      • setDetectAction

        void setDetectAction​(boolean detectAction)
        Parameters:
        detectAction - new value of the state
        Since:
        3.0
      • setAddAutoHandlerUI

        void setAddAutoHandlerUI​(boolean addAutoHandlerUI)
        Parameters:
        addAutoHandlerUI - new value of the state
        Since:
        2.6
      • isGenerateMissingIdsAndStyleClassesInCss

        boolean isGenerateMissingIdsAndStyleClassesInCss()
        Returns:
        true to generate missing ids and style classes in the CSS files
        Since:
        2.29
      • setGenerateMissingIdsAndStyleClassesInCss

        void setGenerateMissingIdsAndStyleClassesInCss​(boolean generateMissingIdsAndStyleClassesInCss)
        Parameters:
        generateMissingIdsAndStyleClassesInCss - new value of the state
        Since:
        2.29
      • getEncoding

        String getEncoding()
        Returns:
        the encoding to use to write files
      • getCommonCss

        URL getCommonCss()
        Returns:
        the optional common css to inject in all JaxxCompiler.
        Since:
        2.13
      • getCssExtension

        String getCssExtension()
        Returns:
        the extension of css files (by default use DEFAULT_CSS_EXTENSION as before).
        Since:
        2.28
      • getI18nModule

        io.ultreia.java4all.i18n.spi.builder.I18nModule getI18nModule()
      • setI18nModule

        void setI18nModule​(io.ultreia.java4all.i18n.spi.builder.I18nModule i18nModule)
      • isGenerateI18nHelper

        boolean isGenerateI18nHelper()
      • setGenerateI18nHelper

        void setGenerateI18nHelper​(boolean generateI18nHelper)
      • isApplyI18nHelper

        boolean isApplyI18nHelper()
      • setApplyI18nHelper

        void setApplyI18nHelper​(boolean applyI18nHelper)