Hi Antonio,

Having tested my implementation, I am seeing that a call to my 
DefinitionDao.getDefinition is being made for every attribute of a Definition, 
even though I only use attributes to point to templates.  

I read in the JavaDocs that there 3 types of attributes, template, definition 
and String.  Is there a way to prevent getDefinition being called for 
attributeds when I know the attributes don't point to definitions?

Vibhore 



On 4 mei 2009, at 22:37, Antonio Petrelli <[email protected]> wrote:

2009/5/4 Vibhore Anant <[email protected]>:
if the code in my custom TilesContainerFactory gets executed correctly, the 
LocaleDefinitionsFactory will be created automatically, right?

protected LocaleDefinitionsFactory instantiateDefinitionsFactory(
Object context, TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory, LocaleResolver resolver) {
return new LocaleDefinitionsFactory();
}

I think so, but probably it is overridden by the code in
TilesContainerFactory.postCreationOperations.
I think you have no choice other than debugging.

Antonio



      

Reply via email to