|
|||||||||
| 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(java.lang.Object context)
Creates a Tiles container. |
protected TilesContextFactory |
createContextFactory(java.lang.Object context)
Create a Tiles context factory. |
protected AttributeRenderer |
createDefaultAttributeRenderer(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
TilesContainer container,
AttributeEvaluator evaluator)
Creates the default attribute renderer. |
protected DefinitionsFactory |
createDefinitionsFactory(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
LocaleResolver resolver)
Creates the definitions factory. |
protected DefinitionsReader |
createDefinitionsReader(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory)
Creates the definitions reader. |
protected AttributeEvaluator |
createEvaluator(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
LocaleResolver resolver)
Creates the attribute evaluator to use. |
protected DefinitionDAO<java.util.Locale> |
createLocaleDefinitionDao(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
LocaleResolver resolver)
Creates a Locale-based definition DAO. |
protected LocaleResolver |
createLocaleResolver(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory)
Creates the locale resolver. |
protected PreparerFactory |
createPreparerFactory(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory)
Creates the preparer factory to use. |
protected RendererFactory |
createRendererFactory(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
TilesContainer container,
AttributeEvaluator evaluator)
Creates a renderer factory. |
protected java.util.List<java.net.URL> |
getSourceURLs(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory)
Returns a list containing the URLs to be parsed. |
protected BasicTilesContainer |
instantiateContainer(java.lang.Object context)
Instantiate the container, without initialization. |
protected LocaleDefinitionsFactory |
instantiateDefinitionsFactory(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
LocaleResolver resolver)
Instantiate a new definitions factory based on Locale. |
protected BaseLocaleUrlDefinitionDAO |
instantiateLocaleDefinitionDao(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
LocaleResolver resolver)
Instantiate (and does not initialize) a Locale-based definition DAO. |
protected void |
registerAttributeRenderers(BasicRendererFactory rendererFactory,
java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
TilesContainer container,
AttributeEvaluator evaluator)
Registers attribute renderers in a BasicRendererFactory. |
protected void |
registerChainedContextFactories(java.lang.Object context,
ChainedTilesContextFactory contextFactory)
Register elements of a chained context factory. |
protected void |
registerContextFactory(java.lang.String className,
java.util.List<TilesContextFactory> factories)
Registers a TilesContextFactory specifying its classname. |
| Methods inherited from class org.apache.tiles.factory.AbstractTilesContainerFactory |
|---|
getInitParameter, getInitParameterMap, 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(java.lang.Object context)
createContainer in class AbstractTilesContainerFactorycontext - The (application) context object.
protected BasicTilesContainer instantiateContainer(java.lang.Object context)
context - The context object.
protected TilesContextFactory createContextFactory(java.lang.Object context)
ChainedTilesContextFactory.
context - The context.
protected void registerChainedContextFactories(java.lang.Object context,
ChainedTilesContextFactory contextFactory)
context - The context.contextFactory - The context factory to use.
protected void registerContextFactory(java.lang.String className,
java.util.List<TilesContextFactory> factories)
TilesContextFactory specifying its classname.
className - The name of the class to instantiate.factories - The list of factories to add to.
protected DefinitionsFactory createDefinitionsFactory(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
LocaleResolver resolver)
UrlDefinitionsFactory with default dependencies.
context - The context.applicationContext - The Tiles application context.contextFactory - The Tiles context factory.resolver - The locale resolver.
protected LocaleDefinitionsFactory instantiateDefinitionsFactory(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
LocaleResolver resolver)
context - The context.applicationContext - The Tiles application context.contextFactory - The Tiles context factory.resolver - The locale resolver.
protected BaseLocaleUrlDefinitionDAO instantiateLocaleDefinitionDao(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
LocaleResolver resolver)
context - The context.applicationContext - The Tiles application context.contextFactory - The Tiles context factory.resolver - The locale resolver.
protected DefinitionDAO<java.util.Locale> createLocaleDefinitionDao(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
LocaleResolver resolver)
context - The context.applicationContext - The Tiles application context.contextFactory - The Tiles context factory.resolver - The locale resolver.
protected LocaleResolver createLocaleResolver(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory)
DefaultLocaleResolver.
context - The context.applicationContext - The Tiles application context.contextFactory - The Tiles context factory.
protected DefinitionsReader createDefinitionsReader(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory)
DigesterDefinitionsReader.
context - The context.applicationContext - The Tiles application context.contextFactory - The Tiles context factory.
protected java.util.List<java.net.URL> getSourceURLs(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory)
context - The context.applicationContext - The Tiles application context.contextFactory - The Tiles context factory.
protected AttributeEvaluator createEvaluator(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
LocaleResolver resolver)
DirectAttributeEvaluator.
context - The context.applicationContext - The Tiles application context.contextFactory - The Tiles context factory.resolver - The locale resolver.
protected PreparerFactory createPreparerFactory(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory)
BasicPreparerFactory.
context - The context.applicationContext - The Tiles application context.contextFactory - The Tiles context factory.
protected RendererFactory createRendererFactory(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
TilesContainer container,
AttributeEvaluator evaluator)
BasicRendererFactory, composed of an
UntypedAttributeRenderer as default, and
StringAttributeRenderer, TemplateAttributeRenderer and
DefinitionAttributeRenderer.
context - The context.applicationContext - The Tiles application context.contextFactory - The Tiles context factory.container - The container.evaluator - The evaluator.
protected AttributeRenderer createDefaultAttributeRenderer(java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
TilesContainer container,
AttributeEvaluator evaluator)
UntypedAttributeRenderer.
context - The context.applicationContext - The Tiles application context.contextFactory - The Tiles context factory.container - The container.evaluator - The evaluator.
protected void registerAttributeRenderers(BasicRendererFactory rendererFactory,
java.lang.Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory,
TilesContainer container,
AttributeEvaluator evaluator)
BasicRendererFactory. By
default, it registers a StringAttributeRenderer, a
TemplateAttributeRenderer and a
DefinitionAttributeRenderer.
rendererFactory - The renderer factory to configure.context - The context.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 | ||||||||