You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Rafal Krzewski <Ra...@e-point.pl> on 2001/04/10 21:21:09 UTC

Proposals for Turbine 2.2

Hello.

Here is the long anticipated proposal list that I have prepared
based on the OneWebNG project papers. OneWebNG is a Groupware/
Intranet software package that is being developed at e-point. 
Turbine was chosen to be base of our system. 
Here is the list of improvments that we would like to see to
happen after 2.1 branch is released:

1. I18n

- messages that turbine outputs should live in a resource bundles, not
in
  in TR.props

- template lookups depending on locale (Is Ilkka working on that?) 


2. Sub-pplications

- separate template/module namespaces for diffent sub-applications. 

- extension do DynamicURI & derivates to support new parameter
(sub-application
  selector)

- sub-application configuration issues

- loading sub-application from jar files

- deployment/undeployment of sub-applications - runtime or not?


3. Service framework

- simplify initialization sequence - no more init(Object), just start(),
  init(), shutdown()

- system property repository in the broker, for the services that
*really*
  need to use ServletConfig or RunData

- getRealPath/getResourceAsStream for the use in the services in the
broker

- initialization of the broker needs to be refactored - logic for that
should
  moved from TurbineServices into BaseServiceBroker


4. resource service

- clean up property names so that dot is used as namespace separator,
not 
  as a space character replacement examples:
  services.GlobalCacheService.cache.check.frequecy should be:
  services.GlobalCacheService.cachCheckFrequency
  services.PullService.tools.per.request.refresh should be:
  services.PullService.toolsPerRequestRefresh

- if we do the above, it would be easy to map the dot separated property
names
  onto a DOM tree or a JNDI namespace. These two alternative
ResourceService
  implementation would be a nice addition to Turbine


5. security service 

- UserManager should become a service in it's own right

- ACL mechanism should become pluggable. A new interface ACLBuilder must
be
  defined, the interface would have single method of 'Object
buildACL(User)'
  signature. UserManagerService would have a property that would contain
  *service name* that implements ACLBuilder. buildACL will be an
instance
  not class method, so a concrete instance of the service must be
consulted.

- User object will have method of 'Object getACL()' signature that will
  delegate to UserManagerService, which in turn delegates to the
configured
  ACLBuilder. It's OK to cache the returned object, since the ACLBuilder
  will keep references ACL objects internally, to reflect the changes
  of sercurity information at runtime.

- TurbineSecurityService will be the default ACLBuilder shipped with the
  system.

- TurbineSecurityService should have it's OM/Peer classes Torque
generated

- Group should be could be renamed to 'Realm' or 'Domain'. This should 
  decrease the confusion about it's meaning

- Attributes of Roles/Groups/Permissions will be dropped. I don't think
  the idea catched on.

- User attributes should be moved into a seaprate table, or even two
  tables if we want to store meta information for user attributes.
  This will require a customized Peer class for User objects, but 
  this will be easy with recent Torque's two-level class generation

- On session unbind event, only acces counters/timestamps should be
  updated not the whole data. This should fix the overriding of
  admin's changes by the unbound session problems. The information 
  which attributes should be updated could be placed in user attribute
  meta-information table.


6. naming service

- this service is rater outdated, it needs some cleanup, and adding
  suppport for DirContexts (low priority, might be useful in  
  creating LDAP User Manager / Security Service implementations)


7. XSLT service

- support for processing of DOM trees present in memory could be 
  useful (right now both data and stylesheet are read from disk
  files)


8. Scheduler service

- implementaions independent of DB/Peers should be added. An xml
  based implementation seems easy & useable.


9. Reusable components 

- facilities for presenation of tabular data, with the ability
  to do paging, filtering and sorting

- date selection component (skinnable calendar with year/month/week 
  views in a popup window, includes some JS)


10. Browser window bound application context

- SessionContext interface similar to that of ServletSession

- getGlobalContext() and getLocalContext() methods in RunData

- objects stored in local context must be Cloneable (they
  will be cloned per every hit. A configurable number of local
  contexts will be kept, so that user may continue a sub-session
  from an alternate window)

- those will not interfere with normal usage of Servlet session
 

11. Peers

- Criteria should not extend Hashtable. This is widely considered to ba
  a bad practice. Even if criteria is to maintain hashtable-like 
  semantics, it should do so by delegation not derivation.


12. Parameter parser & it's ilk

- clean up and orthogonalize APIs (add vs append vs set)

- what the heck is uploadData? I think UploadService/FileItems do the
  trick just fine

- BaseValueParser should not extend RecyclableSupport. If I understand
  the pattern correctly, it should include an instance of
RecyclableSupport
  and delegate Recyclable interface method to it. The same goes for
  TurbineDefaultRunData. To prevent people from doing that
RecyclableSupport
  should not implement Recyclable itself. AFAIK, this kind of apprach is 
  used to emulate multiple inheritance in Java. I'd appreciate a comment
  on this issue from Ilkka.
  

13. Core processing 

- Begone, ECS! We want ECS to dissappear completly from Turbine. Instead
  of Elements, modules should pass Strings around.

- the inheirtance hierarchy of modules - if you look at the class
diagram,
  you'll notice that it looks rather ugly. We are going to have a little
  brainstormin session at e-point, tommorow 1400CEST, I'll post our
detailed 
  proposals regarding the hierachy afterwards


14. Renaming and reordering

- 2.2 will be a good moment to rename, and move classes around.

- WebMacroSite classes could be renamed to just WebMacro

- some utility classes could be moved into service packages, to
decerease
  the crazy number of packages we have, and help better hermetisation
  of code with package accesible fields/methods.


Some of the things mentioned in here might well make it into
2.1, if we are fast enough in implementing them. Others will
take some time to complete - like the Session context stuff
and improved security service.


Thanks,
Rafal

PS. Stay tuned for details on module hierachy changes tomorrow

--
Rafal Krzewski
Senior Internet Developer
mailto:Rafal.Krzewski@e-point.pl
+48 22 8534830 http://e-point.pl

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


Re: Proposals for Turbine 2.2

Posted by Rafal Krzewski <Ra...@e-point.pl>.
Jason van Zyl wrote:

> Looking over the list I think most of us agree that these are useful
> and needed. Does anyone mind if I turn this into a set of xdocs. We
> will all agree but I think the ideas need to be collected somewhere
> so that there is a clear idea as to what is going to be done.
> 
> The application service is one example where the proposal xdoc
> would servce as an eventual spec. I agree with everything on the
> list plus I have several more I'd like to add but I'd like
> to make them xdocs so they stay in some coherent form.

Sure, go for it Jason.

I recently added the project map to the xdocs, that lists all of
the classes we have in Turbine today (acutally a few less as
Turbine evolves rapidly, as you all know). It has placeholders
for TODO lists for each component. I'm not sure if these are
really useable, because you'd have to go over 9 pages to
see all the lists. Therefore I think centralized proposal/TODO 
page with links to detailed specs would be better.

Rafal

--
Rafal Krzewski
Senior Internet Developer
mailto:Rafal.Krzewski@e-point.pl
+48 22 8534830 http://e-point.pl

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


Re: Proposals for Turbine 2.2

Posted by Jason van Zyl <jv...@apache.org>.
Rafal Krzewski wrote:

Looking over the list I think most of us agree that these are useful
and needed. Does anyone mind if I turn this into a set of xdocs. We
will all agree but I think the ideas need to be collected somewhere
so that there is a clear idea as to what is going to be done.

The application service is one example where the proposal xdoc
would servce as an eventual spec. I agree with everything on the
list plus I have several more I'd like to add but I'd like
to make them xdocs so they stay in some coherent form.

> 
> Hello.
> 
> Here is the long anticipated proposal list that I have prepared
> based on the OneWebNG project papers. OneWebNG is a Groupware/
> Intranet software package that is being developed at e-point.
> Turbine was chosen to be base of our system.
> Here is the list of improvments that we would like to see to
> happen after 2.1 branch is released:
> 
> 1. I18n
> 
> - messages that turbine outputs should live in a resource bundles, not
> in
>   in TR.props
> 
> - template lookups depending on locale (Is Ilkka working on that?)
> 
> 2. Sub-pplications
> 
> - separate template/module namespaces for diffent sub-applications.
> 
> - extension do DynamicURI & derivates to support new parameter
> (sub-application
>   selector)
> 
> - sub-application configuration issues
> 
> - loading sub-application from jar files
> 
> - deployment/undeployment of sub-applications - runtime or not?
> 
> 3. Service framework
> 
> - simplify initialization sequence - no more init(Object), just start(),
>   init(), shutdown()
> 
> - system property repository in the broker, for the services that
> *really*
>   need to use ServletConfig or RunData
> 
> - getRealPath/getResourceAsStream for the use in the services in the
> broker
> 
> - initialization of the broker needs to be refactored - logic for that
> should
>   moved from TurbineServices into BaseServiceBroker
> 
> 4. resource service
> 
> - clean up property names so that dot is used as namespace separator,
> not
>   as a space character replacement examples:
>   services.GlobalCacheService.cache.check.frequecy should be:
>   services.GlobalCacheService.cachCheckFrequency
>   services.PullService.tools.per.request.refresh should be:
>   services.PullService.toolsPerRequestRefresh
> 
> - if we do the above, it would be easy to map the dot separated property
> names
>   onto a DOM tree or a JNDI namespace. These two alternative
> ResourceService
>   implementation would be a nice addition to Turbine
> 
> 5. security service
> 
> - UserManager should become a service in it's own right
> 
> - ACL mechanism should become pluggable. A new interface ACLBuilder must
> be
>   defined, the interface would have single method of 'Object
> buildACL(User)'
>   signature. UserManagerService would have a property that would contain
>   *service name* that implements ACLBuilder. buildACL will be an
> instance
>   not class method, so a concrete instance of the service must be
> consulted.
> 
> - User object will have method of 'Object getACL()' signature that will
>   delegate to UserManagerService, which in turn delegates to the
> configured
>   ACLBuilder. It's OK to cache the returned object, since the ACLBuilder
>   will keep references ACL objects internally, to reflect the changes
>   of sercurity information at runtime.
> 
> - TurbineSecurityService will be the default ACLBuilder shipped with the
>   system.
> 
> - TurbineSecurityService should have it's OM/Peer classes Torque
> generated
> 
> - Group should be could be renamed to 'Realm' or 'Domain'. This should
>   decrease the confusion about it's meaning
> 
> - Attributes of Roles/Groups/Permissions will be dropped. I don't think
>   the idea catched on.
> 
> - User attributes should be moved into a seaprate table, or even two
>   tables if we want to store meta information for user attributes.
>   This will require a customized Peer class for User objects, but
>   this will be easy with recent Torque's two-level class generation
> 
> - On session unbind event, only acces counters/timestamps should be
>   updated not the whole data. This should fix the overriding of
>   admin's changes by the unbound session problems. The information
>   which attributes should be updated could be placed in user attribute
>   meta-information table.
> 
> 6. naming service
> 
> - this service is rater outdated, it needs some cleanup, and adding
>   suppport for DirContexts (low priority, might be useful in
>   creating LDAP User Manager / Security Service implementations)
> 
> 7. XSLT service
> 
> - support for processing of DOM trees present in memory could be
>   useful (right now both data and stylesheet are read from disk
>   files)
> 
> 8. Scheduler service
> 
> - implementaions independent of DB/Peers should be added. An xml
>   based implementation seems easy & useable.
> 
> 9. Reusable components
> 
> - facilities for presenation of tabular data, with the ability
>   to do paging, filtering and sorting
> 
> - date selection component (skinnable calendar with year/month/week
>   views in a popup window, includes some JS)
> 
> 10. Browser window bound application context
> 
> - SessionContext interface similar to that of ServletSession
> 
> - getGlobalContext() and getLocalContext() methods in RunData
> 
> - objects stored in local context must be Cloneable (they
>   will be cloned per every hit. A configurable number of local
>   contexts will be kept, so that user may continue a sub-session
>   from an alternate window)
> 
> - those will not interfere with normal usage of Servlet session
> 
> 
> 11. Peers
> 
> - Criteria should not extend Hashtable. This is widely considered to ba
>   a bad practice. Even if criteria is to maintain hashtable-like
>   semantics, it should do so by delegation not derivation.
> 
> 12. Parameter parser & it's ilk
> 
> - clean up and orthogonalize APIs (add vs append vs set)
> 
> - what the heck is uploadData? I think UploadService/FileItems do the
>   trick just fine
> 
> - BaseValueParser should not extend RecyclableSupport. If I understand
>   the pattern correctly, it should include an instance of
> RecyclableSupport
>   and delegate Recyclable interface method to it. The same goes for
>   TurbineDefaultRunData. To prevent people from doing that
> RecyclableSupport
>   should not implement Recyclable itself. AFAIK, this kind of apprach is
>   used to emulate multiple inheritance in Java. I'd appreciate a comment
>   on this issue from Ilkka.
> 
> 
> 13. Core processing
> 
> - Begone, ECS! We want ECS to dissappear completly from Turbine. Instead
>   of Elements, modules should pass Strings around.
> 
> - the inheirtance hierarchy of modules - if you look at the class
> diagram,
>   you'll notice that it looks rather ugly. We are going to have a little
>   brainstormin session at e-point, tommorow 1400CEST, I'll post our
> detailed
>   proposals regarding the hierachy afterwards
> 
> 14. Renaming and reordering
> 
> - 2.2 will be a good moment to rename, and move classes around.
> 
> - WebMacroSite classes could be renamed to just WebMacro
> 
> - some utility classes could be moved into service packages, to
> decerease
>   the crazy number of packages we have, and help better hermetisation
>   of code with package accesible fields/methods.
> 
> Some of the things mentioned in here might well make it into
> 2.1, if we are fast enough in implementing them. Others will
> take some time to complete - like the Session context stuff
> and improved security service.
> 
> Thanks,
> Rafal
> 
> PS. Stay tuned for details on module hierachy changes tomorrow
> 
> --
> Rafal Krzewski
> Senior Internet Developer
> mailto:Rafal.Krzewski@e-point.pl
> +48 22 8534830 http://e-point.pl
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org

-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine
http://tambora.zenplex.org

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


Re: Proposals for Turbine 2.2

Posted by Jason van Zyl <jv...@apache.org>.
Rafal Krzewski wrote:
> 
> Jon Stevens wrote:
> 
> > > 2. Sub-pplications
> >
> > Yes, Turbine should have the concept of container WAR's. ie: WAR files that
> > Turbine is responsible for deploying. These should be simply a defined
> > directory/file structure within a WAR file.
> 
> We need a detailed spec for that. Not very soon, but before we
> start writing any code for this feature.
> 

I have the start of one as I've tried this with Flux already. Ilkka
also has a system that is working. We were going to have a chat and
I will flesh out the application-service-proposal.xml document.

-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine
http://tambora.zenplex.org

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


Re: Proposals for Turbine 2.2

Posted by Leon Messerschmidt <le...@opticode.co.za>.
> > > 7. XSLT service
> > >
> > > - support for processing of DOM trees present in memory could be

Shouldn't be difficult to add.

> > > useful (right now both data and stylesheet are read from disk
> > > files)
> >
> > +1. GlobalCache.
>
> Caching parsed stylesheets could give a good performance boost.

They are.  Just switch it in your TR.properties.  And yes, the performance
boost is HUGE.

> OTOH, application could do all this stuff without the service,
> so I'm not sure what is the added value of XSLT service after all.

~ Leon


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


Re: Proposals for Turbine 2.2

Posted by Jason van Zyl <jv...@apache.org>.
Rafal Krzewski wrote:
> 
> Jon Stevens wrote:
> 
> > >>> 2. Sub-pplications
> > >>
> > >> Yes, Turbine should have the concept of container WAR's. ie: WAR files that
> > >> Turbine is responsible for deploying. These should be simply a defined
> > >> directory/file structure within a WAR file.
> > >
> > > We need a detailed spec for that. Not very soon, but before we
> > > start writing any code for this feature.
> >
> > Yes. Of course. I think Jason should be one of the main people to define
> > that.
> 
> My friend Norbert is writing a summary of the discussion about
> sub-applications
> that we had here at e-point. He said he'll post it tomorrow on
> turibne-dev.

Norbet, if you are watching this list you might want to have chat
in #turbine. Ilkka and I are probably going to talk further about an
application service which covers sub-applications. So it would probably
be better for the three of us to chat and collect everything into
a cohesive proposal and turn it into an xdoc. I am working today
on a bunch of proposals in particular the application service so
that we will have something to chat about.

Ilkka, are you free today at some point? Anyone is welcome to
participate
in the sub-application discussion in #turbine. I will collect any views
and collect them in the xdoc proposal for the application service.

Anytime today is fine with me, I'll be writing most of the day. The
chat room is located at

cvs.working-dogs.com:6667 #turbine.




-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine
http://tambora.zenplex.org

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


Re: Proposals for Turbine 2.2

Posted by Santiago Gala <sg...@hisitech.com>.
Ilkka Priha wrote:

> One more comment about ECS. Its original idea is OK for me, but
> unfortunately its current implementation is difficult to use when trying to
> support multiple markup languages. One problem in Turbine is that the
> getPage() method in RunData is based on the ECS Document class, but that's
> applicable only for HTML pages. WML, XML and other markup languages have
> their own root classes. I agree with Dan that ECS should be hidden behind
> some optional modules and direct references to its classes should be removed
> from RunData, Turbine and other general classes.
> 

I was about to do essentially the same comment WRT Jetspeed and turbine.

The main problem I find with ECS is that it imposes a HTML-specific 
structure. I like more an approach similar to the one proposed by Rafal, 
where we can use whatever templating scheme to generate, if needed, pdf 
or flash/svg, or any xml markup (WML,VRML,voiceML, ...)

The abstractions about HEAD elements quoted by Jon are generic enough so 
that they can be made into abstract entities used by a page context.


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


RE: Proposals for Turbine 2.2

Posted by Ilkka Priha <ip...@surfeu.fi>.
One more comment about ECS. Its original idea is OK for me, but
unfortunately its current implementation is difficult to use when trying to
support multiple markup languages. One problem in Turbine is that the
getPage() method in RunData is based on the ECS Document class, but that's
applicable only for HTML pages. WML, XML and other markup languages have
their own root classes. I agree with Dan that ECS should be hidden behind
some optional modules and direct references to its classes should be removed
from RunData, Turbine and other general classes.

-- Ilkka


> -----Original Message-----
> From: dlr@despot.finemaltcoding.com
> [mailto:dlr@despot.finemaltcoding.com]On Behalf Of Daniel Rall
> Sent: Thursday, April 19, 2001 00:36
> To: turbine-dev@jakarta.apache.org
> Subject: Re: Proposals for Turbine 2.2
>
>
> Rafal Krzewski <Ra...@e-point.pl> writes:
>
> > Rafal Krzewski wrote:
> >
> > > This is all of the useage of ECS in Turbine today
> > > - wrapping Strings into StringElements and unwrapping them back.
> > > This makes me think that using java.lang.String as the plumbing
> > > component of the framework would only change things for the better.
> >
> > Hey Jon, I did'n see you commenting on that. Should I understand that
> > I have convinced you?
>
> Mandatory use of ECS needs to GO.  Period.  It should definitely still
> be an option for those who desire it, but neither Jost Lucas nor I
> want to have to include a library with Helm that is Turbine-specific
> that we don't leverage in any way.
>
> Daniel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>


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


Re: Proposals for Turbine 2.2

Posted by Daniel Rall <dl...@collab.net>.
Rafal Krzewski <Ra...@e-point.pl> writes:

> Rafal Krzewski wrote:
> 
> > This is all of the useage of ECS in Turbine today
> > - wrapping Strings into StringElements and unwrapping them back.
> > This makes me think that using java.lang.String as the plumbing
> > component of the framework would only change things for the better.
> 
> Hey Jon, I did'n see you commenting on that. Should I understand that
> I have convinced you?

Mandatory use of ECS needs to GO.  Period.  It should definitely still
be an option for those who desire it, but neither Jost Lucas nor I
want to have to include a library with Helm that is Turbine-specific
that we don't leverage in any way.

Daniel

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


Re: Proposals for Turbine 2.2

Posted by Rafal Krzewski <Ra...@e-point.pl>.
Jon Stevens wrote:
> I did comment on it. I said that it is more than just wrapping Strings into
> StringElements. $page.setBgColor() is using ECS to do things retroactively
> and is not something you can easily duplicate with just regular String
> objects unless you go about re-inventing ECS's core classes.
> 
> I'm still -1 to removing that functionality and replacing it with something
> else because that makes absolutely no sense at all and is totally
> re-inventing the wheel.

I disagree. If we define an extra level of templating, there is no need
at
all to do things retroactively. I think that is a much better design,
don't
you?

    Page           Screen          Layout            Navigation
     |-context-+     |                |                   |
     |<--------+     |                |                   |
     |---getLayout-->|                |                   |
     |------------------------build-->|                   |
     |               |                |-context-+         |
     |               |                |<--------+         |
     |               |<-build---------|                   |
     |               |-context-+      |                   |
     |               |<--------|      |                   |
     |               |-render-+       |                   |
     |               |<-------+       |                   | 
     |               |                |-render-+          |
     |               |                |        |          |
     |               |                |        |--build-->|
     |               |                |        |          |-context-+
     |               |                |        |          |<--------+
     |               |                |        |          |-render-+
     |               |                |        |          |<-------+
     |               |                |<-------+          |
     |-render-+      |                |                   |
     |<-------+      |                |                   |
     |               |                |                   |

A word of explaination: the action "context" denotes the filling of
template
context by a Java class (the Module/Assember) and "render" is the act of
rendering the template. This may modify the context also using #set
statements.

As you see, page template will be rendered last, so all interested
parties
may set up the variables in the context, so the head contents will be
produced
correctly. There is no need whatsoever to modify the markup that was
already
generated.

Introducing page template allows the HTML desinger to work on it in the
most straightforward way. I think it's a big advantage. The page
designer
can also define his own variables that he'd pass between screen/layout
template
and the page template to set the title/css/whatever, without learing
consulting
the programmers. He does not need to learn any $data.set* incantations
to do
his job. And *if* we want to provide a class for juggling all the stuff
that 
can go into <head> as it's properties, the overlap with ECS won't be
that
big, as I said in my previous message.

I just feel that it's the current system does not make much sense...

Please don't be so stubborn Jon. Read my message, and the previous one,
and
think about pros and cons. Don't just give me the 'old is better' talk. 

Rafal

--
Rafal Krzewski
Senior Internet Developer
mailto:Rafal.Krzewski@e-point.pl
+48 22 8534830 http://e-point.pl

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


Re: Proposals for Turbine 2.2

Posted by Daniel Rall <dl...@collab.net>.
Jon Stevens <jo...@latchkey.com> writes:

> I did comment on it. I said that it is more than just wrapping Strings into
> StringElements. $page.setBgColor() is using ECS to do things retroactively
> and is not something you can easily duplicate with just regular String
> objects unless you go about re-inventing ECS's core classes.
> 
> I'm still -1 to removing that functionality and replacing it with something
> else because that makes absolutely no sense at all and is totally
> re-inventing the wheel.

Use of TurbineWebMacro or TurbineVelocity in Joist demands ECS.  But
Joist doesn't use the functionality that you describe above--it just
wants the output of a template merge...

Daniel

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


Re: Proposals for Turbine 2.2

Posted by Jon Stevens <jo...@latchkey.com>.
on 4/18/01 11:22 AM, "Rafal Krzewski" <Ra...@e-point.pl> wrote:

> Rafal Krzewski wrote:
> 
>> This is all of the useage of ECS in Turbine today
>> - wrapping Strings into StringElements and unwrapping them back.
>> This makes me think that using java.lang.String as the plumbing
>> component of the framework would only change things for the better.
> 
> Hey Jon, I did'n see you commenting on that. Should I understand that
> I have convinced you?

I did comment on it. I said that it is more than just wrapping Strings into
StringElements. $page.setBgColor() is using ECS to do things retroactively
and is not something you can easily duplicate with just regular String
objects unless you go about re-inventing ECS's core classes.

I'm still -1 to removing that functionality and replacing it with something
else because that makes absolutely no sense at all and is totally
re-inventing the wheel.

-jon


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


Re: Proposals for Turbine 2.2

Posted by Rafal Krzewski <Ra...@e-point.pl>.
Rafal Krzewski wrote:

> This is all of the useage of ECS in Turbine today
> - wrapping Strings into StringElements and unwrapping them back.
> This makes me think that using java.lang.String as the plumbing
> component of the framework would only change things for the better.

Hey Jon, I did'n see you commenting on that. Should I understand that
I have convinced you?

Rafal

--
Rafal Krzewski
Senior Internet Developer
mailto:Rafal.Krzewski@e-point.pl
+48 22 8534830 http://e-point.pl

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


Re: Proposals for Turbine 2.2

Posted by Rafal Krzewski <ra...@apache.org>.
Jon Stevens wrote:

> >>> 2. Sub-pplications
> >>
> >> Yes, Turbine should have the concept of container WAR's. ie: WAR files that
> >> Turbine is responsible for deploying. These should be simply a defined
> >> directory/file structure within a WAR file.
> >
> > We need a detailed spec for that. Not very soon, but before we
> > start writing any code for this feature.
> 
> Yes. Of course. I think Jason should be one of the main people to define
> that.

My friend Norbert is writing a summary of the discussion about
sub-applications
that we had here at e-point. He said he'll post it tomorrow on
turibne-dev.

> > ... and when Zielu did configuration of the logging service in XML, you
> > smacked him :-)
> 
> I smacked him because it didn't fit with our existing structure (it defined
> it's own XML file that was separate from the rest of the configuration). I
> also spent a LOT of time going back and creating a configuration class for
> the logging system that would allow us to plug in a proper XML system in the
> future.

I know, I do appreciate your work on putting the things back together.
 
> >> - Project and Regexp should be added to the ACL. @see Helm's (CollabNets)
> >> Permission scheme.
> >
> > Huh? I'll take a look but it does not sound like a generaly useable
> > feature to me...
> 
> Please take a look. It may not be 100% generally usable, but it is important
> to some people.

I'd rateher the system to be flexible enouhg, that people that need
exotic
stuff, can add it in easily, than stuffing everyting into the framework
itself. 

> >> I needed it for Noodle. Please don't remove it. Search the archives, I
> >> answered your questions about this already.
> >
> > I'll check it, but I still don't like it :-) Maybe you should fix
> > Noodle?
> 
> Noodle isn't broken. It needs access to that data.

And where is this data coming from? I only see a getter/setter method
pair
in ParameterParser interface and DefaultPP class and an instance
variable in 
DefaultPP. Are you sure you can't put that data somewhere else?
I'm picking on that because it can be very confusing to people that want
to do file uploading, and haven't figured out UploadService yet.

> > With a PageTool. Screen class/template use it's setters, and then, when
> > layout
> > is rendered, it includes a header template where PageTool's getters are
> > used
> > to create all the markup needed.
> 
> -1. you are re-inventing ECS.

I don't see it this way. At most, I'm re-inventing a tiny bit of ECS -
the tags that the PageTool is interested in are: head, body, title,
meta, 
link, script and base. Don't you think that this is a small subset of
HTML, 
compared to what ECS has to handle?
 
> > The only problem with this approach is that navigation's
> > classes/templates
> > cannot modify the header, but I think that they should not do it after
> > all.
> 
> -1. a Navigation needs access to the <HEAD>.

... very rarely I would say. But even this problem can be solved, with
adding an extra level of template encapsulation.

I mean, we could create a TemplatePage > VelocityPage classes, that
would
use a template to render the markup that was earlier created using ECS.

There would be a single template for the whole application, just as
there
is a single Page class. The template would use $body_placeholder for 
including the output of the Layout.

I think that this solution is superiour to the ECS approach, because the
head section/body tag+it's funny attributes can be crated by the HTML
designer in a familiar way. He can hard code all the things that are
constant for the whole site in the template, and use only those 
properties of PageTool that are expected page-to-page.
 
> >> If anything I would rather see ECS2 finished up and put into the core of
> >> Turbine. It is much more tuned for memory and speed. check out the
> >> jakarta-ecs2 module.
> >
> > ECS2??? AARGH!!! Please no more :-)
> 
> It is a re-write for speed and memory. ECS still serves a good purpose for
> the model/controller layer, but I think we all agree it shouldn't be used
> for the presentation layer. See above.

I don't really see any benefits of using ECS as the plumbing components 
in Turbine. Back then, when all he modules were generating ECS
hierarhies,
a Layout had a possibility to programatically modify the output of a 
Screen. For exaple you could change the background color of a third
cell in the second row of that table under the H3 hader.... I don't
think that any sane application would do that, but it was certainly
possible.

These days, we use templating systems. A navigation template merge
resulsts in a String that is wrapped in a StringElement, that is 
in turned back into a String and then stuffed into the Layout's
context. The same goes for the Screen. At last, the output of
Layout's template merging is written to the Response stream in case
of VelocityOnly layout, or wrapped in yet another StringElement
and stuffed into RunData, to be turned back into a String by
Turbine.doGet along witht the rest of ECS elements, and written
to the Response. This is all of the useage of ECS in Turbine today 
- wrapping Strings into StringElements and unwrapping them back.
This makes me think that using java.lang.String as the plumbing
component of the framework would only change things for the better.

The ECS mechanism for head section creation is in my opinion
inconvinient and counter-intuitive, especially for the HTML
designers. We created a WebMacroOnlyLayout as a workaround 
long time ago and we are happy with it. Crating TemplatePage
would make it even better and cleaner.

Rafal

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


Re: Proposals for Turbine 2.2

Posted by Jon Stevens <jo...@latchkey.com>.
on 4/10/01 1:23 PM, "Rafal Krzewski" <Ra...@e-point.pl> wrote:

> Jon Stevens wrote:
> 
>>> 2. Sub-pplications
>> 
>> Yes, Turbine should have the concept of container WAR's. ie: WAR files that
>> Turbine is responsible for deploying. These should be simply a defined
>> directory/file structure within a WAR file.
> 
> We need a detailed spec for that. Not very soon, but before we
> start writing any code for this feature.

Yes. Of course. I think Jason should be one of the main people to define
that.

> ... and when Zielu did configuration of the logging service in XML, you
> smacked him :-)

I smacked him because it didn't fit with our existing structure (it defined
it's own XML file that was separate from the rest of the configuration). I
also spent a LOT of time going back and creating a configuration class for
the logging system that would allow us to plug in a proper XML system in the
future.

>> - Project and Regexp should be added to the ACL. @see Helm's (CollabNets)
>> Permission scheme.
> 
> Huh? I'll take a look but it does not sound like a generaly useable
> feature to me...

Please take a look. It may not be 100% generally usable, but it is important
to some people.

> Date selection, yes, but the Paging/Sorting stuff belongs to basic
> utilities I think.

Yes.

>> I needed it for Noodle. Please don't remove it. Search the archives, I
>> answered your questions about this already.
> 
> I'll check it, but I still don't like it :-) Maybe you should fix
> Noodle?

Noodle isn't broken. It needs access to that data.

> With a PageTool. Screen class/template use it's setters, and then, when
> layout 
> is rendered, it includes a header template where PageTool's getters are
> used
> to create all the markup needed.

-1. you are re-inventing ECS.

> The only problem with this approach is that navigation's
> classes/templates
> cannot modify the header, but I think that they should not do it after
> all.

-1. a Navigation needs access to the <HEAD>.

>> If anything I would rather see ECS2 finished up and put into the core of
>> Turbine. It is much more tuned for memory and speed. check out the
>> jakarta-ecs2 module.
> 
> ECS2??? AARGH!!! Please no more :-)

It is a re-write for speed and memory. ECS still serves a good purpose for
the model/controller layer, but I think we all agree it shouldn't be used
for the presentation layer. See above.

> No no, I meant WebMacroSitePage -> WebMacroPage and so on

Ok.

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>


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


Re: Proposals for Turbine 2.2

Posted by Rafal Krzewski <Ra...@e-point.pl>.
Jon Stevens wrote:

> > 2. Sub-pplications
> 
> Yes, Turbine should have the concept of container WAR's. ie: WAR files that
> Turbine is responsible for deploying. These should be simply a defined
> directory/file structure within a WAR file.

We need a detailed spec for that. Not very soon, but before we 
start writing any code for this feature.


> > 4. resource service
> > - if we do the above, it would be easy to map the dot separated property
> > names
> > onto a DOM tree or a JNDI namespace. These two alternative
> > ResourceService
> > implementation would be a nice addition to Turbine
> 
> It would actually probably be nicer to move away from the TR.props into an
> XML format.

... and when Zielu did configuration of the logging service in XML, you
smacked him :-)


> > 5. security service
> > - Group  could be renamed to 'Realm' or 'Domain'. This should
> > decrease the confusion about it's meaning
> 
> +1!!!!!!!!!!!!!!!!!

:-) It's a shame that we didn't think about it eariler....

> > - User attributes should be moved into a seaprate table, or even two
> > tables if we want to store meta information for user attributes.
> > This will require a customized Peer class for User objects, but
> > this will be easy with recent Torque's two-level class generation
> 
> +1 This could be similar to the way that Scarab stores Attributes.

Yup. You & Fedor were telling me about it long time ago.

> add:
> 
> - Project and Regexp should be added to the ACL. @see Helm's (CollabNets)
> Permission scheme.

Huh? I'll take a look but it does not sound like a generaly useable
feature to me...


> > 7. XSLT service
> >
> > - support for processing of DOM trees present in memory could be
> > useful (right now both data and stylesheet are read from disk
> > files)
> 
> +1. GlobalCache.

Caching parsed stylesheets could give a good performance boost.
OTOH, application could do all this stuff without the service,
so I'm not sure what is the added value of XSLT service after all.


> > 9. Reusable components
> >
> > - facilities for presenation of tabular data, with the ability
> > to do paging, filtering and sorting
> >
> > - date selection component (skinnable calendar with year/month/week
> > views in a popup window, includes some JS)
> 
> +1. Note, I think this should go into the TDK and not Turbine directly.

Date selection, yes, but the Paging/Sorting stuff belongs to basic
utilities I think.


> > 10. Browser window bound application context
> >
> > - SessionContext interface similar to that of ServletSession
> >
> > - getGlobalContext() and getLocalContext() methods in RunData
> >
> > - objects stored in local context must be Cloneable (they
> > will be cloned per every hit. A configurable number of local
> > contexts will be kept, so that user may continue a sub-session
> > from an alternate window)
> 
> I don't get it. More detail here

I'll post a more detailed explainations on Thursday (I hope :))


> > 12. Parameter parser & it's ilk
> > 
> > - what the heck is uploadData? I think UploadService/FileItems do the
> > trick just fine
> 
> I needed it for Noodle. Please don't remove it. Search the archives, I
> answered your questions about this already.

I'll check it, but I still don't like it :-) Maybe you should fix
Noodle?


> > 13. Core processing
> >
> > - Begone, ECS! We want ECS to dissappear completly from Turbine. Instead
> > of Elements, modules should pass Strings around.
> 
> How do you solve this problem easily:
> 
> $page.setTitle()

With a PageTool. Screen class/template use it's setters, and then, when
layout 
is rendered, it includes a header template where PageTool's getters are
used
to create all the markup needed.

The only problem with this approach is that navigation's
classes/templates
cannot modify the header, but I think that they should not do it after
all.

> If anything I would rather see ECS2 finished up and put into the core of
> Turbine. It is much more tuned for memory and speed. check out the
> jakarta-ecs2 module.

ECS2??? AARGH!!! Please no more :-)

> > - the inheirtance hierarchy of modules - if you look at the class
> > diagram,
> > you'll notice that it looks rather ugly. 

> ??? more details here.

I'll post them tomorrow.


> > 14. Renaming and reordering
> >
> > - 2.2 will be a good moment to rename, and move classes around.
> >
> > - WebMacroSite classes could be renamed to just WebMacro
> 
> Note that it may conflict with existing classes (in WM) named WebMacro.

No no, I meant WebMacroSitePage -> WebMacroPage and so on

Rafal

--
Rafal Krzewski
Senior Internet Developer
mailto:Rafal.Krzewski@e-point.pl
+48 22 8534830 http://e-point.pl

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


Re: Proposals for Turbine 2.2

Posted by Jon Stevens <jo...@latchkey.com>.
on 4/10/01 12:21 PM, "Rafal Krzewski" <Ra...@e-point.pl> wrote:

> Hello.
> 
> Here is the long anticipated proposal list that I have prepared
> based on the OneWebNG project papers. OneWebNG is a Groupware/
> Intranet software package that is being developed at e-point.
> Turbine was chosen to be base of our system.
> Here is the list of improvments that we would like to see to
> happen after 2.1 branch is released:
> 
> 1. I18n
> 
> - messages that turbine outputs should live in a resource bundles, not
> in
> in TR.props
> 
> - template lookups depending on locale (Is Ilkka working on that?)

+1. I18N should become a core factor within Turbine.

> 2. Sub-pplications
> 
> - separate template/module namespaces for diffent sub-applications.
> 
> - extension do DynamicURI & derivates to support new parameter
> (sub-application
> selector)
> 
> - sub-application configuration issues
> 
> - loading sub-application from jar files
> 
> - deployment/undeployment of sub-applications - runtime or not?

Yes, Turbine should have the concept of container WAR's. ie: WAR files that
Turbine is responsible for deploying. These should be simply a defined
directory/file structure within a WAR file.

> 3. Service framework
> 
> - simplify initialization sequence - no more init(Object), just start(),
> init(), shutdown()
> 
> - system property repository in the broker, for the services that
> *really*
> need to use ServletConfig or RunData
> 
> - getRealPath/getResourceAsStream for the use in the services in the
> broker
> 
> - initialization of the broker needs to be refactored - logic for that
> should
> moved from TurbineServices into BaseServiceBroker

+1

> 4. resource service
> 
> - clean up property names so that dot is used as namespace separator,
> not 
> as a space character replacement examples:
> services.GlobalCacheService.cache.check.frequecy should be:
> services.GlobalCacheService.cachCheckFrequency
> services.PullService.tools.per.request.refresh should be:
> services.PullService.toolsPerRequestRefresh

+1

> - if we do the above, it would be easy to map the dot separated property
> names
> onto a DOM tree or a JNDI namespace. These two alternative
> ResourceService
> implementation would be a nice addition to Turbine

It would actually probably be nicer to move away from the TR.props into an
XML format.

> 5. security service
> 
> - UserManager should become a service in it's own right

+1

> - ACL mechanism should become pluggable. A new interface ACLBuilder must
> be
> defined, the interface would have single method of 'Object
> buildACL(User)'
> signature. UserManagerService would have a property that would contain
> *service name* that implements ACLBuilder. buildACL will be an
> instance
> not class method, so a concrete instance of the service must be
> consulted.

+1

> - User object will have method of 'Object getACL()' signature that will
> delegate to UserManagerService, which in turn delegates to the
> configured
> ACLBuilder. It's OK to cache the returned object, since the ACLBuilder
> will keep references ACL objects internally, to reflect the changes
> of sercurity information at runtime.

+1

> - TurbineSecurityService will be the default ACLBuilder shipped with the
> system.
> 
> - TurbineSecurityService should have it's OM/Peer classes Torque
> generated
> 
> - Group should be could be renamed to 'Realm' or 'Domain'. This should
> decrease the confusion about it's meaning

+1!!!!!!!!!!!!!!!!!

> - Attributes of Roles/Groups/Permissions will be dropped. I don't think
> the idea catched on.

+1

> - User attributes should be moved into a seaprate table, or even two
> tables if we want to store meta information for user attributes.
> This will require a customized Peer class for User objects, but
> this will be easy with recent Torque's two-level class generation

+1 This could be similar to the way that Scarab stores Attributes.

> - On session unbind event, only acces counters/timestamps should be
> updated not the whole data. This should fix the overriding of
> admin's changes by the unbound session problems. The information
> which attributes should be updated could be placed in user attribute
> meta-information table.

+1

add:

- Project and Regexp should be added to the ACL. @see Helm's (CollabNets)
Permission scheme.

> 6. naming service
> 
> - this service is rater outdated, it needs some cleanup, and adding
> suppport for DirContexts (low priority, might be useful in
> creating LDAP User Manager / Security Service implementations)

+1

> 7. XSLT service
> 
> - support for processing of DOM trees present in memory could be
> useful (right now both data and stylesheet are read from disk
> files)

+1. GlobalCache.

> 8. Scheduler service
> 
> - implementaions independent of DB/Peers should be added. An xml
> based implementation seems easy & useable.

+1

> 9. Reusable components
> 
> - facilities for presenation of tabular data, with the ability
> to do paging, filtering and sorting
> 
> - date selection component (skinnable calendar with year/month/week
> views in a popup window, includes some JS)

+1. Note, I think this should go into the TDK and not Turbine directly.

> 10. Browser window bound application context
> 
> - SessionContext interface similar to that of ServletSession
> 
> - getGlobalContext() and getLocalContext() methods in RunData
> 
> - objects stored in local context must be Cloneable (they
> will be cloned per every hit. A configurable number of local
> contexts will be kept, so that user may continue a sub-session
> from an alternate window)

I don't get it. More detail here

> - those will not interfere with normal usage of Servlet session

More detail here

> 11. Peers
> 
> - Criteria should not extend Hashtable. This is widely considered to ba
> a bad practice. Even if criteria is to maintain hashtable-like
> semantics, it should do so by delegation not derivation.

+1

> 12. Parameter parser & it's ilk
> 
> - clean up and orthogonalize APIs (add vs append vs set)
> 
> - what the heck is uploadData? I think UploadService/FileItems do the
> trick just fine

I needed it for Noodle. Please don't remove it. Search the archives, I
answered your questions about this already.

> - BaseValueParser should not extend RecyclableSupport. If I understand
> the pattern correctly, it should include an instance of
> RecyclableSupport
> and delegate Recyclable interface method to it. The same goes for
> TurbineDefaultRunData. To prevent people from doing that
> RecyclableSupport
> should not implement Recyclable itself. AFAIK, this kind of apprach is
> used to emulate multiple inheritance in Java. I'd appreciate a comment
> on this issue from Ilkka.
>
> 13. Core processing
> 
> - Begone, ECS! We want ECS to dissappear completly from Turbine. Instead
> of Elements, modules should pass Strings around.

How do you solve this problem easily:

$page.setTitle()

If anything I would rather see ECS2 finished up and put into the core of
Turbine. It is much more tuned for memory and speed. check out the
jakarta-ecs2 module.
 
> - the inheirtance hierarchy of modules - if you look at the class
> diagram,
> you'll notice that it looks rather ugly. We are going to have a little
> brainstormin session at e-point, tommorow 1400CEST, I'll post our
> detailed 
> proposals regarding the hierachy afterwards

??? more details here.

> 14. Renaming and reordering
> 
> - 2.2 will be a good moment to rename, and move classes around.
> 
> - WebMacroSite classes could be renamed to just WebMacro

Note that it may conflict with existing classes (in WM) named WebMacro.

> - some utility classes could be moved into service packages, to
> decerease
> the crazy number of packages we have, and help better hermetisation
> of code with package accesible fields/methods.

+1

> Some of the things mentioned in here might well make it into
> 2.1, if we are fast enough in implementing them. Others will
> take some time to complete - like the Session context stuff
> and improved security service.

kewl.

-jon


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


Re: Proposals for Turbine 2.2

Posted by Rafal Krzewski <ra...@apache.org>.
Ilkka Priha wrote:

> We've mainly worked on markup depependent templates and used simply separate
> servers for different languages. The markup dependendy has been solved by
> Jason's recent updates related to template name extensions. Maybe the locale
> dependency could be solved using the same approach that is used in resource
> bundles... But no, we don't have anything systematic available for this one
> yet.

This is rather opposite that I would expect, at least when considering 
HTML/WML sites. The strict limits on a WAP page size enforce quite
different
organization of the content itself. OTOH, different languages don't
impose that
kind of dramatic changes, unless you create English/Japanese site for
example. 

My friend Norbert is working on a proposal for crating sub-applications
in
a turbine webapp, and it will address i18n issues also. The proposal
should be ready 
tomorrow.

> It's true that recyling of complicated classes can require emulated multiple
> inheritance. Internally, we are using a larger ConfigurableSupport class
> extending RecyclableSupport. That one supports also aggregation, i.e. one of
> it's constructors takes an instance of another class, which is the "real"
> recyclable class. However, RecyclableSupport itself is so simple that it's
> easier to get the same functionality with copy-paste than aggregation.
> 
> That's why don't see your point here. In multiple inheritance emulation, you
> usually extend from the more complicated class and aggregate the simpler
> one. If the other parent class is Object, RecyclableSupport can well be
> extended by the class implementing the Recyclable interface. That really was
> its original purpose and that's the way the pattern works. The goal of using
> interfaces is to hide the implementation and the same implementation can
> implement several interfaces. I don't see any reason why we shouldn't allow
> implementations to their job the easiest way?

I would like Turbine to be a paragon of good programing style (yes we
have a
lot of places to improve yet). The easiest ways often turn out to be
unasethetic
or hard to follow for the less adept ones. That's why I noted that this
solution
does not seem clean pattern-wise to me.

Rafal

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


RE: Proposals for Turbine 2.2

Posted by Ilkka Priha <ip...@surfeu.fi>.

> -----Original Message-----
> From: fil [mailto:fil]On Behalf Of Rafal Krzewski
> Sent: Tuesday, April 10, 2001 22:21
> To: turbine-dev@jakarta.apache.org
> Subject: Proposals for Turbine 2.2
>
>
> Hello.
>
> Here is the long anticipated proposal list that I have prepared
> based on the OneWebNG project papers. OneWebNG is a Groupware/
> Intranet software package that is being developed at e-point.
> Turbine was chosen to be base of our system.
> Here is the list of improvments that we would like to see to
> happen after 2.1 branch is released:
>
> 1. I18n
>
> - messages that turbine outputs should live in a resource bundles, not
> in
>   in TR.props
>
> - template lookups depending on locale (Is Ilkka working on that?)

We've mainly worked on markup depependent templates and used simply separate
servers for different languages. The markup dependendy has been solved by
Jason's recent updates related to template name extensions. Maybe the locale
dependency could be solved using the same approach that is used in resource
bundles... But no, we don't have anything systematic available for this one
yet.

> 12. Parameter parser & it's ilk
>
> - clean up and orthogonalize APIs (add vs append vs set)
>
> - what the heck is uploadData? I think UploadService/FileItems do the
>   trick just fine
>
> - BaseValueParser should not extend RecyclableSupport. If I understand
>   the pattern correctly, it should include an instance of
> RecyclableSupport
>   and delegate Recyclable interface method to it. The same goes for
>   TurbineDefaultRunData. To prevent people from doing that
> RecyclableSupport
>   should not implement Recyclable itself. AFAIK, this kind of apprach is
>   used to emulate multiple inheritance in Java. I'd appreciate a comment
>   on this issue from Ilkka.

It's true that recyling of complicated classes can require emulated multiple
inheritance. Internally, we are using a larger ConfigurableSupport class
extending RecyclableSupport. That one supports also aggregation, i.e. one of
it's constructors takes an instance of another class, which is the "real"
recyclable class. However, RecyclableSupport itself is so simple that it's
easier to get the same functionality with copy-paste than aggregation.

That's why don't see your point here. In multiple inheritance emulation, you
usually extend from the more complicated class and aggregate the simpler
one. If the other parent class is Object, RecyclableSupport can well be
extended by the class implementing the Recyclable interface. That really was
its original purpose and that's the way the pattern works. The goal of using
interfaces is to hide the implementation and the same implementation can
implement several interfaces. I don't see any reason why we shouldn't allow
implementations to their job the easiest way?

-- Ilkka


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