public class CompleteAutoloadTilesContainerFactory extends BasicTilesContainerFactory
/WEB-INF
directory (and subdirectories) and under
META-INF
directories (and subdirectories) in every jar.DEFINITION_RENDERER_NAME, STRING_RENDERER_NAME, TEMPLATE_RENDERER_NAME
CONTAINER_FACTORY_INIT_PARAM
Constructor and Description |
---|
CompleteAutoloadTilesContainerFactory() |
Modifier and Type | Method and Description |
---|---|
protected AttributeEvaluatorFactory |
createAttributeEvaluatorFactory(org.apache.tiles.request.ApplicationContext applicationContext,
LocaleResolver resolver)
Creates the attribute evaluator factory to use.
|
TilesContainer |
createDecoratedContainer(TilesContainer originalContainer,
org.apache.tiles.request.ApplicationContext applicationContext)
Instantiate the container that will be injected to child objects.
|
protected org.apache.tiles.request.render.Renderer |
createDefaultAttributeRenderer(org.apache.tiles.request.render.BasicRendererFactory rendererFactory,
org.apache.tiles.request.ApplicationContext applicationContext,
TilesContainer container,
AttributeEvaluatorFactory attributeEvaluatorFactory)
Creates the default attribute renderer.
|
protected DefinitionsReader |
createDefinitionsReader(org.apache.tiles.request.ApplicationContext applicationContext)
Creates the definitions reader.
|
protected <T> PatternDefinitionResolver<T> |
createPatternDefinitionResolver(Class<T> customizationKeyClass)
Creates a new pattern definition resolver.
|
protected List<org.apache.tiles.request.ApplicationResource> |
getSources(org.apache.tiles.request.ApplicationContext applicationContext)
Returns a list containing the resources to be parsed.
|
protected void |
registerAttributeRenderers(org.apache.tiles.request.render.BasicRendererFactory rendererFactory,
org.apache.tiles.request.ApplicationContext applicationContext,
TilesContainer container,
AttributeEvaluatorFactory attributeEvaluatorFactory)
Registers attribute renderers in a
BasicRendererFactory . |
createContainer, createDefinitionAttributeRenderer, createDefinitionsFactory, createLocaleDefinitionDao, createLocaleResolver, createPreparerFactory, createRendererFactory, createStringAttributeRenderer, createTemplateAttributeRenderer, instantiateContainer, instantiateDefinitionsFactory, instantiateLocaleDefinitionDao
public CompleteAutoloadTilesContainerFactory()
public TilesContainer createDecoratedContainer(TilesContainer originalContainer, org.apache.tiles.request.ApplicationContext applicationContext)
createDecoratedContainer
in class BasicTilesContainerFactory
originalContainer
- The original instantiated container.applicationContext
- The Tiles application context object.protected void registerAttributeRenderers(org.apache.tiles.request.render.BasicRendererFactory rendererFactory, org.apache.tiles.request.ApplicationContext applicationContext, TilesContainer container, AttributeEvaluatorFactory attributeEvaluatorFactory)
BasicRendererFactory
. By
default, it registers delegates to StringRenderer
,
DispatchRenderer
and DefinitionRenderer
.registerAttributeRenderers
in class BasicTilesContainerFactory
rendererFactory
- The renderer factory to configure.applicationContext
- The Tiles application context.container
- The container.attributeEvaluatorFactory
- The attribute evaluator factory.protected org.apache.tiles.request.render.Renderer createDefaultAttributeRenderer(org.apache.tiles.request.render.BasicRendererFactory rendererFactory, org.apache.tiles.request.ApplicationContext applicationContext, TilesContainer container, AttributeEvaluatorFactory attributeEvaluatorFactory)
ChainedDelegateRenderer
.createDefaultAttributeRenderer
in class BasicTilesContainerFactory
rendererFactory
- The renderer factory to configure.applicationContext
- The Tiles application context.container
- The container.attributeEvaluatorFactory
- The attribute evaluator factory.protected AttributeEvaluatorFactory createAttributeEvaluatorFactory(org.apache.tiles.request.ApplicationContext applicationContext, LocaleResolver resolver)
BasicAttributeEvaluatorFactory
containing the
DirectAttributeEvaluator
as the default evaluator.createAttributeEvaluatorFactory
in class BasicTilesContainerFactory
applicationContext
- The Tiles application context.resolver
- The locale resolver.protected <T> PatternDefinitionResolver<T> createPatternDefinitionResolver(Class<T> customizationKeyClass)
BasicPatternDefinitionResolver
with
WildcardDefinitionPatternMatcherFactory
to manage wildcard
substitution.createPatternDefinitionResolver
in class BasicTilesContainerFactory
T
- The type of the customization key.customizationKeyClass
- The customization key class.protected List<org.apache.tiles.request.ApplicationResource> getSources(org.apache.tiles.request.ApplicationContext applicationContext)
getSources
in class BasicTilesContainerFactory
applicationContext
- The Tiles application context.protected DefinitionsReader createDefinitionsReader(org.apache.tiles.request.ApplicationContext applicationContext)
DigesterDefinitionsReader
.createDefinitionsReader
in class BasicTilesContainerFactory
applicationContext
- The Tiles application context.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.