|
||||||||||
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 |
---|
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 |
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 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)
UrlDefinitionsFactory
with default dependencies.
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.resolver
- The locale resolver.
protected LocaleDefinitionsFactory 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 AttributeEvaluator createEvaluator(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, LocaleResolver resolver)
DirectAttributeEvaluator
.
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, AttributeEvaluator evaluator)
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.evaluator
- The evaluator.
protected AttributeRenderer createDefaultAttributeRenderer(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, TilesContainer container, AttributeEvaluator evaluator)
UntypedAttributeRenderer
.
applicationContext
- The Tiles application context.contextFactory
- The Tiles context factory.container
- The container.evaluator
- The evaluator.
protected void registerAttributeRenderers(BasicRendererFactory rendererFactory, TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory, TilesContainer container, AttributeEvaluator evaluator)
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.evaluator
- The evaluator.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |