Carsten Ziegeler wrote:
Vadim Gritsenko wrote:
...
Could you clarify why there is a need in separate (from InputModule) interface specifically for the sitemap?Someone (Chris I think) made a parallel between Modules and Sources : a source acesses (potentially) large data sets, while a module accesses smaller and discrete data.Good idea. I like the shorter name of _PropertySet_ more though.
So, since we have Source, WriteableSource, TraversableSource, etc, why couldn't we have :
- PropertyProvider (I like it more than "PropertyContainer")
- WriteablePropertyProvider (i.e. an input/output provider)
- ListablePropertyProvider (i.e. the current Module, that can list the values it provides)
- ListableWriteablePropertyProvider (extends ListablePropertyProvider and WriteablePropertyProvider)
And require classes used by the sitemap to implement the root PropertyProvider interface.
Thoughts ?
Ok, we already have *released* the InputModules/OutputModules. With this proposal from above we have to deprecate this newly introduced concept again. I see the need for the property provider functionality in the sitemap.
Konstantin have an example with LocaleModule, same could be done with [Request|Session]AttributeModule.Can someone give some examples for the use of a writeable property provider in the sitemap etc?
Then the best thing whould be to introduce another interface, name it InputModule, and existing InputModule rename to ListableInputModule, or something like this...My suggestion was to make the components that are used in the sitemap as simple as possible and keep most parts that we already have intact.
So I still think for the use in the sitemap, the PropertyContainer... but I still don't get why [do you think that] getAttributeNames or getAttributeValues hurt so much.
(PropertyProvider) approach is the simplest approach that fulfills
all requirements (for the use in the sitemap).
Vadim
Carsten
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]