|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectorg.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()
|
|
| Method Summary | |
|---|---|
TilesContainer |
createContainer(TilesApplicationContext applicationContext)
Creates a Tiles container. |
protected AttributeRenderer |
createDefaultAttributeRenderer(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory,
TilesContainer container,
AttributeEvaluator evaluator)
Creates the default attribute renderer. |
protected DefinitionsFactory |
createDefinitionsFactory(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory,
LocaleResolver resolver)
Creates the definitions factory. |
protected DefinitionsReader |
createDefinitionsReader(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory)
Creates the definitions reader. |
protected AttributeEvaluator |
createEvaluator(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory,
LocaleResolver resolver)
Creates the attribute evaluator to use. |
protected DefinitionDAO<java.util.Locale> |
createLocaleDefinitionDao(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory,
LocaleResolver resolver)
Creates a Locale-based definition DAO. |
protected LocaleResolver |
createLocaleResolver(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory)
Creates the locale resolver. |
protected PreparerFactory |
createPreparerFactory(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory)
Creates the preparer factory to use. |
protected RendererFactory |
createRendererFactory(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory,
TilesContainer container,
AttributeEvaluator evaluator)
Creates a renderer factory. |
protected TilesRequestContextFactory |
createRequestContextFactory(TilesApplicationContext context)
Create a Tiles request context factory. |
protected java.util.List<java.net.URL> |
getSourceURLs(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory)
Returns a list containing the URLs to be parsed. |
protected BasicTilesContainer |
instantiateContainer(TilesApplicationContext context)
Instantiate the container, without initialization. |
protected LocaleDefinitionsFactory |
instantiateDefinitionsFactory(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory,
LocaleResolver resolver)
Instantiate a new definitions factory based on Locale. |
protected BaseLocaleUrlDefinitionDAO |
instantiateLocaleDefinitionDao(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory,
LocaleResolver resolver)
Instantiate (and does not initialize) a Locale-based definition DAO. |
protected void |
registerAttributeRenderers(BasicRendererFactory rendererFactory,
TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory,
TilesContainer container,
AttributeEvaluator evaluator)
Registers attribute renderers in a BasicRendererFactory. |
protected void |
registerChainedRequestContextFactories(ChainedTilesRequestContextFactory contextFactory)
Register elements of a chained request context factory. |
protected void |
registerRequestContextFactory(java.lang.String className,
java.util.List<TilesRequestContextFactory> factories,
TilesRequestContextFactory parent)
Registers a TilesRequestContextFactory specifying its
classname. |
| 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 AbstractTilesContainerFactoryapplicationContext - 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(java.lang.String className,
java.util.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<java.util.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 java.util.List<java.net.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 | ||||||||