Hi,

I've implemented a draft solution to the TILES-220 issue. It is
basically an extension of the DefinitionsImpl.
If a definition is registered with * in the name, it is remembered for
later use.
If a definition cannot be found, then these names will be checked,
whether any of them are matching.
If one of them matches, then a new definition will be made, and then
will be remembered, so no more matching needed.

There are some open questions though:
My implementation is basically a solution that can be used without any
modification in tiles.
I think it would be good to include this feature in later versions,
thus it needs to be integrated more tightly into Tiles.

Currently it is a separate factory, with the createDefinitions()
method overridden.
I think this WildcardDefinitions should be used  by the URLDefFactory
by default.

This WildcardDefinitions could be a wrapper as well, in case it is
desired/forseen that the Definitions class could change / or other
implementations might be needed. (In this case the wildcard matching
would still be provided)
It is also possible to include this matching  in the DefinitionsImpl
itself, but may be that would complicate the DefinitionsImpl too much.

One more issue which needs to be discussed is, that this
implementations has references to the XWork library. I don't know
whether it is a problem or not.

What is your opinion about the topic?


-- 
Cserveny Tamas

Reply via email to