Package org.nuiton.jaxx.compiler
Interface CompilerConfiguration
-
- All Known Implementing Classes:
DefaultCompilerConfiguration
public interface CompilerConfigurationConfiguration of a compiler task.- Since:
- 2.0.0
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_CSS_EXTENSIONDefault css file extension.
-
Method Summary
-
-
-
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
-
getHelpBrokerFQN
String getHelpBrokerFQN()
- Returns:
- the FQN of the help broker (can not directly a type since the help broker should (may?) be inside the sources.
-
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:
trueif 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:
trueif a logger must add on each generated jaxx object
-
isGenerateHelp
boolean isGenerateHelp()
- Returns:
trueif we are generating help
-
isI18nable
boolean isI18nable()
- Returns:
trueif we use the i18n system
-
isOptimize
boolean isOptimize()
- Returns:
trueto generate optimized code
-
isProfile
boolean isProfile()
- Returns:
trueif a profile pass must be done
-
isResetAfterCompile
boolean isResetAfterCompile()
- Returns:
trueif states must be reset after the compilation
-
isUseUIManagerForIcon
boolean isUseUIManagerForIcon()
- Returns:
trueif UIManager is used to retrieve icons
-
isVerbose
boolean isVerbose()
- Returns:
trueif compiler is verbose
-
isShowClassDescriptorLoading
boolean isShowClassDescriptorLoading()
- Returns:
trueto trace the Class descriptor loading.- Since:
- 2.4
-
isAddAutoHandlerUI
boolean isAddAutoHandlerUI()
- Returns:
trueto detect and addUIHandlerif found in class-path.- Since:
- 2.6
-
isDetectAction
boolean isDetectAction()
- Returns:
trueto 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:
trueto 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
-
getDecorators
Map<String,CompiledObjectDecorator> getDecorators()
-
getFinalizers
Map<String,JAXXCompilerFinalizer> getFinalizers()
-
getInitializers
Map<String,Initializer> getInitializers()
-
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_EXTENSIONas 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)
-
-