This project has retired. For details please refer to its Attic page.
MockPublicUrlDefinitionsFactory (Tiles 2 2.0.7 Test API)

org.apache.tiles.definition
Class MockPublicUrlDefinitionsFactory

Package class diagram package MockPublicUrlDefinitionsFactory
java.lang.Object
  extended by org.apache.tiles.definition.UrlDefinitionsFactory
      extended by org.apache.tiles.definition.MockPublicUrlDefinitionsFactory
All Implemented Interfaces:
DefinitionsFactory, ReloadableDefinitionsFactory

public class MockPublicUrlDefinitionsFactory
extends UrlDefinitionsFactory

Mock implementation of UrlDefinitionsFactory that exposes two of its methods as public instead of protected.

Version:
$Rev: 527536 $ $Date: 2007-04-11 17:44:51 +0200 (Wed, 11 Apr 2007) $

Field Summary
 
Fields inherited from class org.apache.tiles.definition.UrlDefinitionsFactory
lastModifiedDates, reader, sources
 
Fields inherited from interface org.apache.tiles.definition.DefinitionsFactory
LOCALE_RESOLVER_IMPL_PROPERTY, READER_IMPL_PROPERTY
 
Constructor Summary
MockPublicUrlDefinitionsFactory()
           
 
Method Summary
 void addDefinitions(Definitions definitions, TilesRequestContext tilesContext)
          Exposes the addDefinitions method of UrlDefinitionsFactory.
 boolean isContextProcessed(TilesRequestContext tilesContext)
          Exposes the isLocaleProcessed method of UrlDefinitionsFactory.
 
Methods inherited from class org.apache.tiles.definition.UrlDefinitionsFactory
addSource, calculatePostfixes, concatPostfix, createDefinitions, getDefinition, getDefinitions, init, readDefinitions, refresh, refreshRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockPublicUrlDefinitionsFactory

public MockPublicUrlDefinitionsFactory()
Method Detail

addDefinitions

public void addDefinitions(Definitions definitions,
                           TilesRequestContext tilesContext)
                    throws DefinitionsFactoryException
Exposes the addDefinitions method of UrlDefinitionsFactory.

Overrides:
addDefinitions in class UrlDefinitionsFactory
Parameters:
definitions - The definitions to add.
tilesContext - The request context to use.
Throws:
DefinitionsFactoryException - If something goes wrong during the addition.
See Also:
UrlDefinitionsFactory.addDefinitions(org.apache.tiles.definition.Definitions, org.apache.tiles.context.TilesRequestContext)

isContextProcessed

public boolean isContextProcessed(TilesRequestContext tilesContext)
Exposes the isLocaleProcessed method of UrlDefinitionsFactory.

Overrides:
isContextProcessed in class UrlDefinitionsFactory
Parameters:
tilesContext - The request context to use.
Returns:
true if the context has been already processed.
See Also:
#isContextProcessed(org.apache.tiles.context.TilesRequestContext)


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.