"Kevin A. Burton" wrote:
>
> What I do think is important is that we keep the <entry> tag so that
> other portions of Jetspeed don't break.
>
Funny, I'd say it's important *not* to use <entry> :)
What other portions ? The only code currently using the registry is:
- PortletRegistry (of course)
- PortletFactory
- FeedDeamon
- PortletBrowser
The other codes using the registry markup simply creates dummy entries
in order to instanciate a Portlet by name, that will work whatever how we
chose to implement the "abstract" feature.
> So i guess when we are done we will have 3 types of entry declarations:
>
> <entry ref="">
>
> <entry name="">
>
> <entry name="" isAbstract="true">
>
> I am wondering if we shouldn't just have a type attribute:
>
> <entry type="ref" name="RSS">
>
> <entry type="instance" name="RSS">
>
> <entry type="abstract" name="RSS">
>
Using type in this way would mean that in every code using the registry Entry,
there'll be an if test at best or a switch statement at worst to handle these
entries, I really think this is most inconvenient. Using a special element will
directly provide new API calls to use it.
Also did you envision that ref could reference an "instance" type entry
or another "ref" entry ? If so then your markup is perhaps the way to do it,
if not, using another element will automatically provide the necessary sanity
check.
--
Rapha�l Luta - [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]