public class BasicTilesContainerFactory extends AbstractTilesContainerFactory
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFINITION_RENDERER_NAME
The definition renderer name.
|
protected static String |
STRING_RENDERER_NAME
The string renderer name.
|
protected static String |
TEMPLATE_RENDERER_NAME
The template renderer name.
|
CONTAINER_FACTORY_INIT_PARAM
Constructor and Description |
---|
BasicTilesContainerFactory() |
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 |
createContainer(org.apache.tiles.request.ApplicationContext applicationContext)
Creates a Tiles container.
|
protected TilesContainer |
createDecoratedContainer(TilesContainer originalContainer,
org.apache.tiles.request.ApplicationContext context)
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 org.apache.tiles.request.render.Renderer |
createDefinitionAttributeRenderer(org.apache.tiles.request.render.BasicRendererFactory rendererFactory,
org.apache.tiles.request.ApplicationContext applicationContext,
TilesContainer container,
AttributeEvaluatorFactory attributeEvaluatorFactory)
Creates a
AttributeRenderer using a DefinitionRenderer . |
protected DefinitionsFactory |
createDefinitionsFactory(org.apache.tiles.request.ApplicationContext applicationContext,
LocaleResolver resolver)
Creates the definitions factory.
|
protected DefinitionsReader |
createDefinitionsReader(org.apache.tiles.request.ApplicationContext applicationContext)
Creates the definitions reader.
|
protected DefinitionDAO<Locale> |
createLocaleDefinitionDao(org.apache.tiles.request.ApplicationContext applicationContext,
LocaleResolver resolver)
Creates a Locale-based definition DAO.
|
protected LocaleResolver |
createLocaleResolver(org.apache.tiles.request.ApplicationContext applicationContext)
Creates the locale resolver.
|
protected <T> PatternDefinitionResolver<T> |
createPatternDefinitionResolver(Class<T> customizationKeyClass)
Creates a new pattern definition resolver.
|
protected PreparerFactory |
createPreparerFactory(org.apache.tiles.request.ApplicationContext applicationContext)
Creates the preparer factory to use.
|
protected org.apache.tiles.request.render.RendererFactory |
createRendererFactory(org.apache.tiles.request.ApplicationContext applicationContext,
TilesContainer container,
AttributeEvaluatorFactory attributeEvaluatorFactory)
Creates a renderer factory.
|
protected org.apache.tiles.request.render.Renderer |
createStringAttributeRenderer(org.apache.tiles.request.render.BasicRendererFactory rendererFactory,
org.apache.tiles.request.ApplicationContext applicationContext,
TilesContainer container,
AttributeEvaluatorFactory attributeEvaluatorFactory)
Creates an attribute renderer to render strings.
|
protected org.apache.tiles.request.render.Renderer |
createTemplateAttributeRenderer(org.apache.tiles.request.render.BasicRendererFactory rendererFactory,
org.apache.tiles.request.ApplicationContext applicationContext,
TilesContainer container,
AttributeEvaluatorFactory attributeEvaluatorFactory)
Creates a
AttributeRenderer that uses a DispatchRenderer . |
protected List<org.apache.tiles.request.ApplicationResource> |
getSources(org.apache.tiles.request.ApplicationContext applicationContext)
Returns a list containing the resources to be parsed.
|
protected BasicTilesContainer |
instantiateContainer(org.apache.tiles.request.ApplicationContext context)
Instantiate the container, without initialization.
|
protected UnresolvingLocaleDefinitionsFactory |
instantiateDefinitionsFactory(org.apache.tiles.request.ApplicationContext applicationContext,
LocaleResolver resolver)
Instantiate a new definitions factory based on Locale.
|
protected BaseLocaleUrlDefinitionDAO |
instantiateLocaleDefinitionDao(org.apache.tiles.request.ApplicationContext applicationContext,
LocaleResolver resolver)
Instantiate (and does not initialize) a Locale-based definition DAO.
|
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 . |
protected static final String STRING_RENDERER_NAME
protected static final String TEMPLATE_RENDERER_NAME
protected static final String DEFINITION_RENDERER_NAME
public TilesContainer createContainer(org.apache.tiles.request.ApplicationContext applicationContext)
createContainer
in class AbstractTilesContainerFactory
applicationContext
- The Tiles application context object.protected BasicTilesContainer instantiateContainer(org.apache.tiles.request.ApplicationContext context)
context
- The Tiles application context object.protected TilesContainer createDecoratedContainer(TilesContainer originalContainer, org.apache.tiles.request.ApplicationContext context)
originalContainer
- The original instantiated container.context
- The Tiles application context object.protected DefinitionsFactory createDefinitionsFactory(org.apache.tiles.request.ApplicationContext applicationContext, LocaleResolver resolver)
UnresolvingLocaleDefinitionsFactory
with default dependencies.applicationContext
- The Tiles application context.resolver
- The locale resolver.protected UnresolvingLocaleDefinitionsFactory instantiateDefinitionsFactory(org.apache.tiles.request.ApplicationContext applicationContext, LocaleResolver resolver)
applicationContext
- The Tiles application context.resolver
- The locale resolver.protected BaseLocaleUrlDefinitionDAO instantiateLocaleDefinitionDao(org.apache.tiles.request.ApplicationContext applicationContext, LocaleResolver resolver)
applicationContext
- The Tiles application context.resolver
- The locale resolver.protected DefinitionDAO<Locale> createLocaleDefinitionDao(org.apache.tiles.request.ApplicationContext applicationContext, LocaleResolver resolver)
applicationContext
- The Tiles application context.resolver
- The locale resolver.protected LocaleResolver createLocaleResolver(org.apache.tiles.request.ApplicationContext applicationContext)
DefaultLocaleResolver
.applicationContext
- The Tiles application context.protected DefinitionsReader createDefinitionsReader(org.apache.tiles.request.ApplicationContext applicationContext)
DigesterDefinitionsReader
.applicationContext
- The Tiles application context.protected List<org.apache.tiles.request.ApplicationResource> getSources(org.apache.tiles.request.ApplicationContext applicationContext)
applicationContext
- The Tiles application context.protected AttributeEvaluatorFactory createAttributeEvaluatorFactory(org.apache.tiles.request.ApplicationContext applicationContext, LocaleResolver resolver)
BasicAttributeEvaluatorFactory
containing the
DirectAttributeEvaluator
as the default evaluator.applicationContext
- The Tiles application context.resolver
- The locale resolver.protected PreparerFactory createPreparerFactory(org.apache.tiles.request.ApplicationContext applicationContext)
BasicPreparerFactory
.applicationContext
- The Tiles application context.protected org.apache.tiles.request.render.RendererFactory createRendererFactory(org.apache.tiles.request.ApplicationContext applicationContext, TilesContainer container, AttributeEvaluatorFactory attributeEvaluatorFactory)
BasicRendererFactory
, composed of an
UntypedAttributeRenderer
as default, and delegates of
StringRenderer
, DispatchRenderer
,
DefinitionRenderer
.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
.rendererFactory
- The renderer factory to configure.applicationContext
- The Tiles application context.container
- The container.attributeEvaluatorFactory
- The attribute evaluator factory.protected <T> PatternDefinitionResolver<T> createPatternDefinitionResolver(Class<T> customizationKeyClass)
BasicPatternDefinitionResolver
with
WildcardDefinitionPatternMatcherFactory
to manage wildcard
substitution.T
- The type of the customization key.customizationKeyClass
- The customization key class.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
.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 createStringAttributeRenderer(org.apache.tiles.request.render.BasicRendererFactory rendererFactory, org.apache.tiles.request.ApplicationContext applicationContext, TilesContainer container, AttributeEvaluatorFactory attributeEvaluatorFactory)
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 createTemplateAttributeRenderer(org.apache.tiles.request.render.BasicRendererFactory rendererFactory, org.apache.tiles.request.ApplicationContext applicationContext, TilesContainer container, AttributeEvaluatorFactory attributeEvaluatorFactory)
AttributeRenderer
that uses a DispatchRenderer
.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 createDefinitionAttributeRenderer(org.apache.tiles.request.render.BasicRendererFactory rendererFactory, org.apache.tiles.request.ApplicationContext applicationContext, TilesContainer container, AttributeEvaluatorFactory attributeEvaluatorFactory)
AttributeRenderer
using a DefinitionRenderer
.rendererFactory
- The renderer factory to configure.applicationContext
- The Tiles application context.container
- The container.attributeEvaluatorFactory
- The attribute evaluator factory.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.