|
||||||||||
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 org.apache.tiles.extras.complete.CompleteAutoloadTilesContainerFactory
public class CompleteAutoloadTilesContainerFactory
Tiles container factory that:
/WEB-INF
directory (and subdirectories) and under
META-INF
directories (and subdirectories) in every jar.
Field Summary |
---|
Fields inherited from class org.apache.tiles.factory.BasicTilesContainerFactory |
---|
DEFINITION_RENDERER_NAME, STRING_RENDERER_NAME, TEMPLATE_RENDERER_NAME |
Fields inherited from class org.apache.tiles.factory.AbstractTilesContainerFactory |
---|
CONTAINER_FACTORY_INIT_PARAM |
Constructor Summary | |
---|---|
CompleteAutoloadTilesContainerFactory()
|
Method Summary | ||
---|---|---|
protected AttributeEvaluatorFactory |
createAttributeEvaluatorFactory(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory,
LocaleResolver resolver)
Creates the attribute evaluator factory to use. |
|
protected AttributeRenderer |
createDefaultAttributeRenderer(BasicRendererFactory rendererFactory,
TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory,
TilesContainer container,
AttributeEvaluatorFactory attributeEvaluatorFactory)
Creates the default attribute renderer. |
|
protected DefinitionsReader |
createDefinitionsReader(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory)
Creates the definitions reader. |
|
protected
|
createPatternDefinitionResolver(Class<T> customizationKeyClass)
Creates a new pattern definition resolver. |
|
protected List<URL> |
getSourceURLs(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory)
Returns a list containing the URLs to be parsed. |
|
protected List<TilesRequestContextFactory> |
getTilesRequestContextFactoriesToBeChained(ChainedTilesRequestContextFactory parent)
Returns the list of TilesRequestContextFactory instances to be
chained together. |
|
protected BasicTilesContainer |
instantiateContainer(TilesApplicationContext applicationContext)
Instantiate the container, without initialization. |
|
protected void |
registerAttributeRenderers(BasicRendererFactory rendererFactory,
TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory,
TilesContainer container,
AttributeEvaluatorFactory attributeEvaluatorFactory)
Registers attribute renderers in a BasicRendererFactory . |
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 |
Constructor Detail |
---|
public CompleteAutoloadTilesContainerFactory()
Method Detail |
---|
protected BasicTilesContainer instantiateContainer(TilesApplicationContext applicationContext)
instantiateContainer
in class BasicTilesContainerFactory
applicationContext
- The Tiles application context object.
protected List<TilesRequestContextFactory> getTilesRequestContextFactoriesToBeChained(ChainedTilesRequestContextFactory parent)
TilesRequestContextFactory
instances to be
chained together.
getTilesRequestContextFactoriesToBeChained
in class BasicTilesContainerFactory
parent
- The parent factory.
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
.
registerAttributeRenderers
in class BasicTilesContainerFactory
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 createDefaultAttributeRenderer(BasicRendererFactory rendererFactory, TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, TilesContainer container, AttributeEvaluatorFactory attributeEvaluatorFactory)
ChainedDelegateAttributeRenderer
.
createDefaultAttributeRenderer
in class BasicTilesContainerFactory
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 AttributeEvaluatorFactory createAttributeEvaluatorFactory(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, LocaleResolver resolver)
BasicAttributeEvaluatorFactory
containing the
DirectAttributeEvaluator
as the default evaluator.
createAttributeEvaluatorFactory
in class BasicTilesContainerFactory
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.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<URL> getSourceURLs(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory)
getSourceURLs
in class BasicTilesContainerFactory
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.
protected DefinitionsReader createDefinitionsReader(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory)
DigesterDefinitionsReader
.
createDefinitionsReader
in class BasicTilesContainerFactory
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |