You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Scott T Weaver <sc...@binary-designs.net> on 2004/05/19 16:08:40 UTC

[J2] Proposed refactoring of Jetspeed 2 API interfaces

What I had started doing in my branch was moving interfaces out of the
component implementations and portal/ and into commons.  This makes it
easier to test components that may access these other interfaces without
having to specifically depend on the component implementation.  This
also makes our code more modular and extensible.  Say, for example, some
one wants to implement a persistence store using Hibernate.  As the
current source layout is set up, the user would have a dependency on the
the current persistence store implementation built with OJB because that
is where the interfaces are leading them to having to have ALL the
dependencies OJB required also.  By moving all the persistence store
interfaces up into commons, all the developer needs as dependency is the
jetspeed 2 commons jar.

-- 
******************************************
*           Scott T. Weaver              *
*         <we...@apache.org>            *
*     <http://www.einnovation.com>       *   
* -------------------------------------- *
*   Apache Jetspeed Enterprise Portal    *
*     Apache Pluto Portlet Container     *
*                                        *
* OpenEditPro, Website Content Mangement *
*     <http://www.openeditpro.com>       *
******************************************


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


Re: [J2] Proposed refactoring of Jetspeed 2 API interfaces

Posted by Roger Ruttimann <ro...@apache.org>.
+1
Makes perfectly sense.
It makes it easier to implement a different persistent storage if we 
decide to move away from OJB.

Roger

Scott T Weaver wrote:

>What I had started doing in my branch was moving interfaces out of the
>component implementations and portal/ and into commons.  This makes it
>easier to test components that may access these other interfaces without
>having to specifically depend on the component implementation.  This
>also makes our code more modular and extensible.  Say, for example, some
>one wants to implement a persistence store using Hibernate.  As the
>current source layout is set up, the user would have a dependency on the
>the current persistence store implementation built with OJB because that
>is where the interfaces are leading them to having to have ALL the
>dependencies OJB required also.  By moving all the persistence store
>interfaces up into commons, all the developer needs as dependency is the
>jetspeed 2 commons jar.
>
>  
>


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


Re: [J2] Proposed refactoring of Jetspeed 2 API interfaces

Posted by David Sean Taylor <da...@bluesunrise.com>.
On May 19, 2004, at 7:48 AM, Ate Douma wrote:

>
>
> Scott T Weaver wrote:
>> What I had started doing in my branch was moving interfaces out of the
>> component implementations and portal/ and into commons.  This makes it
>> easier to test components that may access these other interfaces 
>> without
>> having to specifically depend on the component implementation.  This
>> also makes our code more modular and extensible.  Say, for example, 
>> some
>> one wants to implement a persistence store using Hibernate.  As the
>> current source layout is set up, the user would have a dependency on 
>> the
>> the current persistence store implementation built with OJB because 
>> that
>> is where the interfaces are leading them to having to have ALL the
>> dependencies OJB required also.  By moving all the persistence store
>> interfaces up into commons, all the developer needs as dependency is 
>> the
>> jetspeed 2 commons jar.
> While I'm +1 on moving the interfaces out from the component 
> implementations, I'm not so sure about moving them into commons.
>
> As I see it, there are currently two different usages of the commons. 
> One is for building *on top of* J2 specific features like the 
> ServletPortlet or the StrutsServletContextProviderImpl.
> The other is for providing interfaces and base classes for assembling 
> and access to the J2 core itself.
>
Im proposing creating a component to house the ServletPortlet, 
StrutsServletContextProviderImpl and supporting classes.
Not sure on the name, what about "jetspeed-pa-core" -- since the jar is 
used to aid in handling internal portal to portlet application 
operations


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


Re: [J2] Proposed refactoring of Jetspeed 2 API interfaces

Posted by Scott T Weaver <sc...@binary-designs.net>.
Hi Serge,

Take a look at issue: http://nagoya.apache.org/jira/browse/JS2-30

Right now, to expedite refactoring, I am going to put things into
commons, but I am definitely +1 on an "api" or "core" sub-project
containing only interfaces and exceptions.  After the component
refactoring, we can start on segregating "api" from "commons."

On Wed, 2004-05-19 at 12:06, Serge Huber wrote:
> At 16:48 19.05.2004, you wrote:
> >While I'm +1 on moving the interfaces out from the component 
> >implementations, I'm not so sure about moving them into commons.
> 
> The other problem I have with commons is that it seems to become a place 
> where anything global goes, with no real structure. Maybe we should create 
> a "interfaces" or "apis" project ?
> 
> Regards,
>    Serge Huber.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
-- 
******************************************
*           Scott T. Weaver              *
*         <we...@apache.org>            *
*     <http://www.einnovation.com>       *   
* -------------------------------------- *
*   Apache Jetspeed Enterprise Portal    *
*     Apache Pluto Portlet Container     *
*                                        *
* OpenEditPro, Website Content Mangement *
*     <http://www.openeditpro.com>       *
******************************************


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


Re: [J2] Proposed refactoring of Jetspeed 2 API interfaces

Posted by Serge Huber <sh...@jahia.com>.
At 16:48 19.05.2004, you wrote:
>While I'm +1 on moving the interfaces out from the component 
>implementations, I'm not so sure about moving them into commons.

The other problem I have with commons is that it seems to become a place 
where anything global goes, with no real structure. Maybe we should create 
a "interfaces" or "apis" project ?

Regards,
   Serge Huber.




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


Re: [J2] Proposed refactoring of Jetspeed 2 API interfaces

Posted by Scott T Weaver <sc...@binary-designs.net>.
Hi Ate,

Would you mind adding your comment below to this issue:

http://nagoya.apache.org/jira/browse/JS2-30

Thanks,

On Wed, 2004-05-19 at 10:48, Ate Douma wrote:
> Scott T Weaver wrote:
> > What I had started doing in my branch was moving interfaces out of the
> > component implementations and portal/ and into commons.  This makes it
> > easier to test components that may access these other interfaces without
> > having to specifically depend on the component implementation.  This
> > also makes our code more modular and extensible.  Say, for example, some
> > one wants to implement a persistence store using Hibernate.  As the
> > current source layout is set up, the user would have a dependency on the
> > the current persistence store implementation built with OJB because that
> > is where the interfaces are leading them to having to have ALL the
> > dependencies OJB required also.  By moving all the persistence store
> > interfaces up into commons, all the developer needs as dependency is the
> > jetspeed 2 commons jar.
> > 
> While I'm +1 on moving the interfaces out from the component 
> implementations, I'm not so sure about moving them into commons.
> 
> As I see it, there are currently two different usages of the commons. 
> One is for building *on top of* J2 specific features like the 
> ServletPortlet or the StrutsServletContextProviderImpl.
> The other is for providing interfaces and base classes for assembling 
> and access to the J2 core itself.
> 
>  From a formal point I don't like it when portlet developers which need 
> only access to the J2 specific features for building *on top of* J2 also 
> import all kinds of core features which are not their concern. I'd 
> rather see those classes be stored in a separate J2 "core" (or whatever).
> 
> For now, I'd say move the interfaces to commons but I also would like to 
> discuss if the "core" features aren't better of in a separate core 
> subproject (or whatever it should be called).
> 
> Regards,
> 
> Ate
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
-- 
******************************************
*           Scott T. Weaver              *
*         <we...@apache.org>            *
*     <http://www.einnovation.com>       *   
* -------------------------------------- *
*   Apache Jetspeed Enterprise Portal    *
*     Apache Pluto Portlet Container     *
*                                        *
* OpenEditPro, Website Content Mangement *
*     <http://www.openeditpro.com>       *
******************************************


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


Re: [J2] Proposed refactoring of Jetspeed 2 API interfaces

Posted by Ate Douma <at...@douma.nu>.

Scott T Weaver wrote:
> What I had started doing in my branch was moving interfaces out of the
> component implementations and portal/ and into commons.  This makes it
> easier to test components that may access these other interfaces without
> having to specifically depend on the component implementation.  This
> also makes our code more modular and extensible.  Say, for example, some
> one wants to implement a persistence store using Hibernate.  As the
> current source layout is set up, the user would have a dependency on the
> the current persistence store implementation built with OJB because that
> is where the interfaces are leading them to having to have ALL the
> dependencies OJB required also.  By moving all the persistence store
> interfaces up into commons, all the developer needs as dependency is the
> jetspeed 2 commons jar.
> 
While I'm +1 on moving the interfaces out from the component 
implementations, I'm not so sure about moving them into commons.

As I see it, there are currently two different usages of the commons. 
One is for building *on top of* J2 specific features like the 
ServletPortlet or the StrutsServletContextProviderImpl.
The other is for providing interfaces and base classes for assembling 
and access to the J2 core itself.

 From a formal point I don't like it when portlet developers which need 
only access to the J2 specific features for building *on top of* J2 also 
import all kinds of core features which are not their concern. I'd 
rather see those classes be stored in a separate J2 "core" (or whatever).

For now, I'd say move the interfaces to commons but I also would like to 
discuss if the "core" features aren't better of in a separate core 
subproject (or whatever it should be called).

Regards,

Ate


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