I'd like to implement the ability to load tiles definitions from the classpath in addition to from the servlet/portlet context. I'm curious about implementation choices:

1) Add the support to the current ServletTilesContext and PortletTilesContext through a standard base class and/or ResourceLoader. This is probably the way to go if class loader loading of definitions will be considered a standard feature. It would be my first choice.

2) Add a new context which decorates and delegates to any other TilesContext and provides a way to configure which context should be used. This approach would be beneficial if loading from the class path should be considered optional.

Either implementation will result in a modification to the TilesContext interface - the getResource() method will need to be replaced with a Enumeration<URL> getResources() or similar method.


Additionally, what are people's thoughts about wildcard handling for the resource definitions files. Is this a feature others are interested in?

(For those wondering, these features are especially useful when using freemarker and bundling the ftl templates in different jars).

thanks for the opinions,


David

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to