struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Reddin <l...@reddin.org>
Subject Re: [Tiles] Resolving inheritances improvements
Date Fri, 07 Oct 2005 14:30:27 GMT

On Oct 7, 2005, at 4:00 AM, <brenmcguire@tariffenet.it>  
<brenmcguire@tariffenet.it> wrote:

> 1) Find the "leaf" definition file;
> 2) If it is already loaded, finish.
> 3) Create an empty definitions set;
> 4) put all missing definitions loaded into the definitions set;
> 5) find the parent definition file;
> 6) if it is already loaded, put all missing definitions (by cloning  
> them)
> in the definitions set and go to 9;
> 7) if it is the root file, go to 9;
> 8) go to step 5;
> 9) resolve inheritances.
>
> As you can see, there will be a big caching of already loaded  
> definitions
> files, only by adding two methods (addMissingDefinitions in
> XmlDefinitionsSet and "clone" in XmlDefinition).
> What do you think about it?

If I understand you correctly Standalone Tiles may be doing that now  
by default.  I'll have to take another look at it (maybe add another  
test case).

Greg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message