public class WuicFacadeBuilder extends Object
This class handles several settings in its state and is required to create a WuicFacade
.
Modifier and Type | Class and Description |
---|---|
class |
WuicFacadeBuilder.ContextBuilderFacade
This class gives a chance to directly define settings for the final
ContextBuilder of the built
WuicFacade . |
Constructor and Description |
---|
WuicFacadeBuilder()
Builds an instance with default settings.
|
WuicFacadeBuilder(BiFunction<String,String,String> properties)
Builds an instance with settings initialized with the given properties.
|
Modifier and Type | Method and Description |
---|---|
WuicFacade |
build()
Builds a new facade.
|
WuicFacadeBuilder.ContextBuilderFacade |
contextBuilder()
Returns the central
ContextBuilder . |
WuicFacadeBuilder |
contextBuilderConfigurators(ContextBuilderConfigurator... contextBuilderConfigurator)
Adds additional context builder configurators.
|
WuicFacadeBuilder |
contextPath(String cp)
Sets a context path.
|
WuicFacadeBuilder |
disableMultipleConfigInTagSupport()
Disables a re-configuration from view template each time a workflow execution is performed.
|
WuicFacadeBuilder |
noDefaultContextBuilderConfigurator()
Indicates that configurator creating default DAOs and engines should not be used when the context is initialized.
|
WuicFacadeBuilder |
noXmlConfiguration()
Do not use any wuic.xml file to configure the context.
|
WuicFacadeBuilder |
objectBuilderInspector(ObjectBuilderInspector obi)
Sets an inspector for any object creation.
|
WuicFacadeBuilder |
warmUpStrategy(WuicFacade.WarmupStrategy wus)
Specifies a
WuicFacade.WarmupStrategy . |
WuicFacadeBuilder |
wuicPropertiesPath(URL properties)
Sets a new location for wuic.properties file.
|
WuicFacadeBuilder |
wuicXmlPath(URL xml)
Sets a new location for wuic.xml file.
|
public WuicFacadeBuilder()
Builds an instance with default settings.
public WuicFacadeBuilder(BiFunction<String,String,String> properties)
Builds an instance with settings initialized with the given properties. The @link BiFunction} must returns the
value corresponding to the key (first parameter) or the second parameter if the return value is null
.
properties
- the propertiespublic final WuicFacadeBuilder wuicXmlPath(URL xml)
Sets a new location for wuic.xml file.
xml
- the new locationpublic final WuicFacadeBuilder wuicPropertiesPath(URL properties)
Sets a new location for wuic.properties file.
properties
- the new locationpublic final WuicFacadeBuilder noXmlConfiguration()
Do not use any wuic.xml file to configure the context.
public final WuicFacadeBuilder contextPath(String cp)
Sets a context path.
cp
- the context path.public final WuicFacadeBuilder warmUpStrategy(WuicFacade.WarmupStrategy wus)
Specifies a WuicFacade.WarmupStrategy
.
wus
- the new strategypublic final WuicFacadeBuilder disableMultipleConfigInTagSupport()
Disables a re-configuration from view template each time a workflow execution is performed.
public final WuicFacadeBuilder noDefaultContextBuilderConfigurator()
Indicates that configurator creating default DAOs and engines should not be used when the context is initialized.
public final WuicFacadeBuilder objectBuilderInspector(ObjectBuilderInspector obi)
Sets an inspector for any object creation.
obi
- the ObjectBuilderInspector
public final WuicFacadeBuilder contextBuilderConfigurators(ContextBuilderConfigurator... contextBuilderConfigurator)
Adds additional context builder configurators.
contextBuilderConfigurator
- additional context builder configuratorpublic final WuicFacadeBuilder.ContextBuilderFacade contextBuilder()
Returns the central ContextBuilder
.
public WuicFacade build() throws WuicException
Builds a new facade.
WuicException
- if facade cannot be builtCopyright © 2012-2015. All Rights Reserved.