|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.factory.AbstractTilesContainerFactory org.apache.tiles.factory.BasicTilesContainerFactory
public class BasicTilesContainerFactory
Factory that builds a standard Tiles container using only Java code.
Field Summary | |
---|---|
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. |
Fields inherited from class org.apache.tiles.factory.AbstractTilesContainerFactory |
---|
CONTAINER_FACTORY_INIT_PARAM |
Constructor Summary | |
---|---|
BasicTilesContainerFactory()
|
Methods inherited from class org.apache.tiles.factory.AbstractTilesContainerFactory |
---|
getTilesContainerFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String STRING_RENDERER_NAME
protected static final String TEMPLATE_RENDERER_NAME
protected static final String DEFINITION_RENDERER_NAME
Constructor Detail |
---|
public BasicTilesContainerFactory()
Method Detail |
---|
public TilesContainer createContainer(TilesApplicationContext applicationContext)
createContainer
in class AbstractTilesContainerFactory
applicationContext
- The Tiles application context object.
protected BasicTilesContainer instantiateContainer(TilesApplicationContext context)
context
- The Tiles application context object.
protected TilesRequestContextFactory createRequestContextFactory(TilesApplicationContext context)
ChainedTilesRequestContextFactory
.
context
- The Tiles application context.
protected void registerChainedRequestContextFactories(ChainedTilesRequestContextFactory contextFactory)
contextFactory
- The request context factory to use.protected List<TilesRequestContextFactory> getTilesRequestContextFactoriesToBeChained(ChainedTilesRequestContextFactory parent)
TilesRequestContextFactory
instances to be
chained together.
parent
- The parent factory.
protected void registerRequestContextFactory(String className, List<TilesRequestContextFactory> factories, TilesRequestContextFactory parent)
TilesRequestContextFactory
specifying its
classname.
className
- The name of the class to instantiate.factories
- The list of factories to add to.parent
- The parent TilesRequestContextFactory
. If null
it won't be considered.protected DefinitionsFactory createDefinitionsFactory(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, LocaleResolver resolver)
UnresolvingLocaleDefinitionsFactory
with default dependencies.
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.resolver
- The locale resolver.
protected UnresolvingLocaleDefinitionsFactory instantiateDefinitionsFactory(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, LocaleResolver resolver)
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.resolver
- The locale resolver.
protected BaseLocaleUrlDefinitionDAO instantiateLocaleDefinitionDao(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, LocaleResolver resolver)
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.resolver
- The locale resolver.
protected DefinitionDAO<Locale> createLocaleDefinitionDao(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, LocaleResolver resolver)
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.resolver
- The locale resolver.
protected LocaleResolver createLocaleResolver(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory)
DefaultLocaleResolver
.
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.
protected DefinitionsReader createDefinitionsReader(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory)
DigesterDefinitionsReader
.
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.
protected List<URL> getSourceURLs(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory)
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.
protected AttributeEvaluatorFactory createAttributeEvaluatorFactory(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, LocaleResolver resolver)
BasicAttributeEvaluatorFactory
containing the
DirectAttributeEvaluator
as the default evaluator.
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.resolver
- The locale resolver.
protected PreparerFactory createPreparerFactory(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory)
BasicPreparerFactory
.
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.
protected RendererFactory createRendererFactory(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, TilesContainer container, AttributeEvaluatorFactory attributeEvaluatorFactory)
BasicRendererFactory
, composed of an
UntypedAttributeRenderer
as default, and
StringAttributeRenderer
, TemplateAttributeRenderer
and
DefinitionAttributeRenderer
.
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.container
- The container.attributeEvaluatorFactory
- The attribute evaluator factory.
protected AttributeRenderer createDefaultAttributeRenderer(BasicRendererFactory rendererFactory, TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, TilesContainer container, AttributeEvaluatorFactory attributeEvaluatorFactory)
ChainedDelegateAttributeRenderer
.
rendererFactory
- The renderer factory to configure.applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.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(BasicRendererFactory rendererFactory, TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, TilesContainer container, AttributeEvaluatorFactory attributeEvaluatorFactory)
BasicRendererFactory
. By
default, it registers a StringAttributeRenderer
, a
TemplateAttributeRenderer
and a
DefinitionAttributeRenderer
.
rendererFactory
- The renderer factory to configure.applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.container
- The container.attributeEvaluatorFactory
- The attribute evaluator factory.protected AttributeRenderer createStringAttributeRenderer(BasicRendererFactory rendererFactory, TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, TilesContainer container, AttributeEvaluatorFactory attributeEvaluatorFactory)
StringAttributeRenderer
.
rendererFactory
- The renderer factory to configure.applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.container
- The container.attributeEvaluatorFactory
- The attribute evaluator factory.
protected AttributeRenderer createTemplateAttributeRenderer(BasicRendererFactory rendererFactory, TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, TilesContainer container, AttributeEvaluatorFactory attributeEvaluatorFactory)
TemplateAttributeRenderer
.
rendererFactory
- The renderer factory to configure.applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.container
- The container.attributeEvaluatorFactory
- The attribute evaluator factory.
protected AttributeRenderer createDefinitionAttributeRenderer(BasicRendererFactory rendererFactory, TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, TilesContainer container, AttributeEvaluatorFactory attributeEvaluatorFactory)
DefinitionAttributeRenderer
.
rendererFactory
- The renderer factory to configure.applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.container
- The container.attributeEvaluatorFactory
- The attribute evaluator factory.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |