You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Howard Lewis Ship <hl...@gmail.com> on 2005/12/20 19:46:32 UTC

About 4.1 / breaking inheritance

This is something I've been aiming at for a while.

I will speak of components; this also applies to pages as well.

In Tapestry, components are objects that have a number of concerns. 
The most basic concerns are:
- transient and persistent property management (via enhanced subclass)
- access to message catalog (via enhanced subclass)
- access to parameter bindings, assets, meta-data (via super-class)
- component heirarchy structure (parent and child components, etc.)
(via super-class)
- lifecycle management (via enhancement and/or super-class)
- custom buisness logic (methods of class)

... etc.

Now, there's an inherent tug-of-war between the super-class
(BaseComponent, AbstractComponent) and the user-provided sub-class.

There's a lot of API inherited from the base class that, in most
cases, the user class has no need or rigtht to access.  For example,
from the user class point of view, the structure of the component and
it's specification should be immutable, yet there are many add and set
methods exposed, waiting to be mis-used.

As has been seen in the last couple of years with the interest in
POJOs, inheritance is problematic; it increases the "surface area" of
the API.

Tapestry 4.0, with its emphasis on injecting anything and everything
into a class via abstract properties, sets the stage for properly
addressing this issue.

My vision is to divide what is today the "component" into two pieces,
which (for the moment) I call the "peer" and the "resources".

The peer is a user supplied class, as today, but not needing to extend
from a Tapestry base class.

The component is a fixed implementation, private to Tapestry.

The resources is a "bridge", injected into the peer, that gives the
peer limited access to the structure, bindings, assets, and so forth,
of the component.  It's a facade over portions of the component and
page APIs.

The advantage here is that we'll have a much more straightforward
relationship between the framework and the user code.   This will
quickly allow the framework to evolve internally without fear of
affecting user code. We will be able to migrate towards an approach
that separates user-related APIs from Tapestry internal APIs.  Right
now they're all in one big blob, which brings many changes into
conflict between fixing bugs and APIs and maintaining backwards
compatibility.

My ultimate vision is that the API for Tapestry, the "public" portion
used by end users, will shrink markedly, and be a few event interfaces
and a handful of read-only interfaces.

Of course, new versions of the existing base classes will be kept
around to provide backwards compatibility.  As I envision it, the base
classes will largely be reworked to delegate to the "resources"
object.

Many issues still remain to be resolved in my head.

--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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


Re: About 4.1 / breaking inheritance

Posted by Ron Piterman <rp...@gmx.net>.
I can not really argue about that - no arguments fall im mind, but 
intuitivley I would say that separation of component definition instance 
  and component instance would be a good thing. but its "just" intuition.

Howard Lewis Ship wrote:
> That remains to be seen; my current vision doesn't take this into
> account. It's pretty much the same as Tapestry today, except that
> where today you have a subclass of AbstractComponent as the nodes of
> the component heirarchy tree, tomorrow you'll have a pair of objects;
> the fixed ComponentImpl class and the user-supplied "peer" class.
> 
> On 12/21/05, Ron Piterman <rp...@gmx.net> wrote:
> 
>>I Guess there is also a (positive) performance issue there (or rather
>>memoray consumption), since the "peer" (somehow I like "model" better)
>>will be instanciated for every page instance, all other parts could be
>>singletones.
>>Cheers,
>>Ron
>>
>>
>>Howard Lewis Ship wrote:
>>
>>>This is something I've been aiming at for a while.
>>>
>>>I will speak of components; this also applies to pages as well.
>>>
>>>In Tapestry, components are objects that have a number of concerns.
>>>The most basic concerns are:
>>>- transient and persistent property management (via enhanced subclass)
>>>- access to message catalog (via enhanced subclass)
>>>- access to parameter bindings, assets, meta-data (via super-class)
>>>- component heirarchy structure (parent and child components, etc.)
>>>(via super-class)
>>>- lifecycle management (via enhancement and/or super-class)
>>>- custom buisness logic (methods of class)
>>>
>>>... etc.
>>>
>>>Now, there's an inherent tug-of-war between the super-class
>>>(BaseComponent, AbstractComponent) and the user-provided sub-class.
>>>
>>>There's a lot of API inherited from the base class that, in most
>>>cases, the user class has no need or rigtht to access.  For example,
>>>from the user class point of view, the structure of the component and
>>>it's specification should be immutable, yet there are many add and set
>>>methods exposed, waiting to be mis-used.
>>>
>>>As has been seen in the last couple of years with the interest in
>>>POJOs, inheritance is problematic; it increases the "surface area" of
>>>the API.
>>>
>>>Tapestry 4.0, with its emphasis on injecting anything and everything
>>>into a class via abstract properties, sets the stage for properly
>>>addressing this issue.
>>>
>>>My vision is to divide what is today the "component" into two pieces,
>>>which (for the moment) I call the "peer" and the "resources".
>>>
>>>The peer is a user supplied class, as today, but not needing to extend
>>>from a Tapestry base class.
>>>
>>>The component is a fixed implementation, private to Tapestry.
>>>
>>>The resources is a "bridge", injected into the peer, that gives the
>>>peer limited access to the structure, bindings, assets, and so forth,
>>>of the component.  It's a facade over portions of the component and
>>>page APIs.
>>>
>>>The advantage here is that we'll have a much more straightforward
>>>relationship between the framework and the user code.   This will
>>>quickly allow the framework to evolve internally without fear of
>>>affecting user code. We will be able to migrate towards an approach
>>>that separates user-related APIs from Tapestry internal APIs.  Right
>>>now they're all in one big blob, which brings many changes into
>>>conflict between fixing bugs and APIs and maintaining backwards
>>>compatibility.
>>>
>>>My ultimate vision is that the API for Tapestry, the "public" portion
>>>used by end users, will shrink markedly, and be a few event interfaces
>>>and a handful of read-only interfaces.
>>>
>>>Of course, new versions of the existing base classes will be kept
>>>around to provide backwards compatibility.  As I envision it, the base
>>>classes will largely be reworked to delegate to the "resources"
>>>object.
>>>
>>>Many issues still remain to be resolved in my head.
>>>
>>>--
>>>Howard M. Lewis Ship
>>>Independent J2EE / Open-Source Java Consultant
>>>Creator, Jakarta Tapestry
>>>Creator, Jakarta HiveMind
>>>
>>>Professional Tapestry training, mentoring, support
>>>and project work.  http://howardlewisship.com
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>>
>>
> 
> 
> 
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
> 
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com


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


Re: About 4.1 / breaking inheritance

Posted by Howard Lewis Ship <hl...@gmail.com>.
That remains to be seen; my current vision doesn't take this into
account. It's pretty much the same as Tapestry today, except that
where today you have a subclass of AbstractComponent as the nodes of
the component heirarchy tree, tomorrow you'll have a pair of objects;
the fixed ComponentImpl class and the user-supplied "peer" class.

On 12/21/05, Ron Piterman <rp...@gmx.net> wrote:
> I Guess there is also a (positive) performance issue there (or rather
> memoray consumption), since the "peer" (somehow I like "model" better)
> will be instanciated for every page instance, all other parts could be
> singletones.
> Cheers,
> Ron
>
>
> Howard Lewis Ship wrote:
> > This is something I've been aiming at for a while.
> >
> > I will speak of components; this also applies to pages as well.
> >
> > In Tapestry, components are objects that have a number of concerns.
> > The most basic concerns are:
> > - transient and persistent property management (via enhanced subclass)
> > - access to message catalog (via enhanced subclass)
> > - access to parameter bindings, assets, meta-data (via super-class)
> > - component heirarchy structure (parent and child components, etc.)
> > (via super-class)
> > - lifecycle management (via enhancement and/or super-class)
> > - custom buisness logic (methods of class)
> >
> > ... etc.
> >
> > Now, there's an inherent tug-of-war between the super-class
> > (BaseComponent, AbstractComponent) and the user-provided sub-class.
> >
> > There's a lot of API inherited from the base class that, in most
> > cases, the user class has no need or rigtht to access.  For example,
> > from the user class point of view, the structure of the component and
> > it's specification should be immutable, yet there are many add and set
> > methods exposed, waiting to be mis-used.
> >
> > As has been seen in the last couple of years with the interest in
> > POJOs, inheritance is problematic; it increases the "surface area" of
> > the API.
> >
> > Tapestry 4.0, with its emphasis on injecting anything and everything
> > into a class via abstract properties, sets the stage for properly
> > addressing this issue.
> >
> > My vision is to divide what is today the "component" into two pieces,
> > which (for the moment) I call the "peer" and the "resources".
> >
> > The peer is a user supplied class, as today, but not needing to extend
> > from a Tapestry base class.
> >
> > The component is a fixed implementation, private to Tapestry.
> >
> > The resources is a "bridge", injected into the peer, that gives the
> > peer limited access to the structure, bindings, assets, and so forth,
> > of the component.  It's a facade over portions of the component and
> > page APIs.
> >
> > The advantage here is that we'll have a much more straightforward
> > relationship between the framework and the user code.   This will
> > quickly allow the framework to evolve internally without fear of
> > affecting user code. We will be able to migrate towards an approach
> > that separates user-related APIs from Tapestry internal APIs.  Right
> > now they're all in one big blob, which brings many changes into
> > conflict between fixing bugs and APIs and maintaining backwards
> > compatibility.
> >
> > My ultimate vision is that the API for Tapestry, the "public" portion
> > used by end users, will shrink markedly, and be a few event interfaces
> > and a handful of read-only interfaces.
> >
> > Of course, new versions of the existing base classes will be kept
> > around to provide backwards compatibility.  As I envision it, the base
> > classes will largely be reworked to delegate to the "resources"
> > object.
> >
> > Many issues still remain to be resolved in my head.
> >
> > --
> > Howard M. Lewis Ship
> > Independent J2EE / Open-Source Java Consultant
> > Creator, Jakarta Tapestry
> > Creator, Jakarta HiveMind
> >
> > Professional Tapestry training, mentoring, support
> > and project work.  http://howardlewisship.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>
>


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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


Re: About 4.1 / breaking inheritance

Posted by Ron Piterman <rp...@gmx.net>.
I Guess there is also a (positive) performance issue there (or rather 
memoray consumption), since the "peer" (somehow I like "model" better) 
will be instanciated for every page instance, all other parts could be 
singletones.
Cheers,
Ron


Howard Lewis Ship wrote:
> This is something I've been aiming at for a while.
> 
> I will speak of components; this also applies to pages as well.
> 
> In Tapestry, components are objects that have a number of concerns. 
> The most basic concerns are:
> - transient and persistent property management (via enhanced subclass)
> - access to message catalog (via enhanced subclass)
> - access to parameter bindings, assets, meta-data (via super-class)
> - component heirarchy structure (parent and child components, etc.)
> (via super-class)
> - lifecycle management (via enhancement and/or super-class)
> - custom buisness logic (methods of class)
> 
> ... etc.
> 
> Now, there's an inherent tug-of-war between the super-class
> (BaseComponent, AbstractComponent) and the user-provided sub-class.
> 
> There's a lot of API inherited from the base class that, in most
> cases, the user class has no need or rigtht to access.  For example,
> from the user class point of view, the structure of the component and
> it's specification should be immutable, yet there are many add and set
> methods exposed, waiting to be mis-used.
> 
> As has been seen in the last couple of years with the interest in
> POJOs, inheritance is problematic; it increases the "surface area" of
> the API.
> 
> Tapestry 4.0, with its emphasis on injecting anything and everything
> into a class via abstract properties, sets the stage for properly
> addressing this issue.
> 
> My vision is to divide what is today the "component" into two pieces,
> which (for the moment) I call the "peer" and the "resources".
> 
> The peer is a user supplied class, as today, but not needing to extend
> from a Tapestry base class.
> 
> The component is a fixed implementation, private to Tapestry.
> 
> The resources is a "bridge", injected into the peer, that gives the
> peer limited access to the structure, bindings, assets, and so forth,
> of the component.  It's a facade over portions of the component and
> page APIs.
> 
> The advantage here is that we'll have a much more straightforward
> relationship between the framework and the user code.   This will
> quickly allow the framework to evolve internally without fear of
> affecting user code. We will be able to migrate towards an approach
> that separates user-related APIs from Tapestry internal APIs.  Right
> now they're all in one big blob, which brings many changes into
> conflict between fixing bugs and APIs and maintaining backwards
> compatibility.
> 
> My ultimate vision is that the API for Tapestry, the "public" portion
> used by end users, will shrink markedly, and be a few event interfaces
> and a handful of read-only interfaces.
> 
> Of course, new versions of the existing base classes will be kept
> around to provide backwards compatibility.  As I envision it, the base
> classes will largely be reworked to delegate to the "resources"
> object.
> 
> Many issues still remain to be resolved in my head.
> 
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
> 
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com


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


Re: About 4.1 / breaking inheritance

Posted by Kent Tong <ke...@cpttm.org.mo>.
Howard Lewis Ship <hlship <at> gmail.com> writes:

> There's a lot of API inherited from the base class that, in most
> cases, the user class has no need or rigtht to access.  For example,
> from the user class point of view, the structure of the component and
> it's specification should be immutable, yet there are many add and set
> methods exposed, waiting to be mis-used.

Those methods seem to be used by the PageLoader only. In that case, why
not revert their relationship: Let the component call the PageLoader in
its constructor:

  public AbstractComponent(IPageLoader pageLoader) {
    this.id = pageLoader.getId();
    this.assets = pageLoader.getAssets();
    ...
  }

Then all the add and set methods can be eliminated or made private.

> As has been seen in the last couple of years with the interest in
> POJOs, inheritance is problematic; it increases the "surface area" of
> the API.

I think the major benefit of using POJO is about testing. I think it
is more important to make sure the IRequestCycle and other related
interfaces are sufficiently isolated and coarse grained so that it 
becomes easier to provide mock implementations to test a component 
along with its child components. I think this is more important than 
the inheritance vs delegation issue.

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)


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


Re: About 4.1 / breaking inheritance

Posted by Howard Lewis Ship <hl...@gmail.com>.
On 12/20/05, Ron Piterman <rp...@gmx.net> wrote:
> This sounds *really* good. So instead of inheritance implement an
> interface and leave the interface method unimplemented to be injected?
> Cheers,
> Ron
>
>
>

Well, if your class doesn't implement the interface, Tapestry will
make the enhanced subclass implement the interface. So even the
interface is optional, but you can count on it being there in terms of
dynamic access using OGNL.


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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


Re: About 4.1 / breaking inheritance

Posted by Ron Piterman <rp...@gmx.net>.
This sounds *really* good. So instead of inheritance implement an 
interface and leave the interface method unimplemented to be injected?
Cheers,
Ron



Howard Lewis Ship wrote:
> This is something I've been aiming at for a while.
> 
> I will speak of components; this also applies to pages as well.
> 
> In Tapestry, components are objects that have a number of concerns. 
> The most basic concerns are:
> - transient and persistent property management (via enhanced subclass)
> - access to message catalog (via enhanced subclass)
> - access to parameter bindings, assets, meta-data (via super-class)
> - component heirarchy structure (parent and child components, etc.)
> (via super-class)
> - lifecycle management (via enhancement and/or super-class)
> - custom buisness logic (methods of class)
> 
> ... etc.
> 
> Now, there's an inherent tug-of-war between the super-class
> (BaseComponent, AbstractComponent) and the user-provided sub-class.
> 
> There's a lot of API inherited from the base class that, in most
> cases, the user class has no need or rigtht to access.  For example,
> from the user class point of view, the structure of the component and
> it's specification should be immutable, yet there are many add and set
> methods exposed, waiting to be mis-used.
> 
> As has been seen in the last couple of years with the interest in
> POJOs, inheritance is problematic; it increases the "surface area" of
> the API.
> 
> Tapestry 4.0, with its emphasis on injecting anything and everything
> into a class via abstract properties, sets the stage for properly
> addressing this issue.
> 
> My vision is to divide what is today the "component" into two pieces,
> which (for the moment) I call the "peer" and the "resources".
> 
> The peer is a user supplied class, as today, but not needing to extend
> from a Tapestry base class.
> 
> The component is a fixed implementation, private to Tapestry.
> 
> The resources is a "bridge", injected into the peer, that gives the
> peer limited access to the structure, bindings, assets, and so forth,
> of the component.  It's a facade over portions of the component and
> page APIs.
> 
> The advantage here is that we'll have a much more straightforward
> relationship between the framework and the user code.   This will
> quickly allow the framework to evolve internally without fear of
> affecting user code. We will be able to migrate towards an approach
> that separates user-related APIs from Tapestry internal APIs.  Right
> now they're all in one big blob, which brings many changes into
> conflict between fixing bugs and APIs and maintaining backwards
> compatibility.
> 
> My ultimate vision is that the API for Tapestry, the "public" portion
> used by end users, will shrink markedly, and be a few event interfaces
> and a handful of read-only interfaces.
> 
> Of course, new versions of the existing base classes will be kept
> around to provide backwards compatibility.  As I envision it, the base
> classes will largely be reworked to delegate to the "resources"
> object.
> 
> Many issues still remain to be resolved in my head.
> 
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
> 
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com


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


Re: About 4.1 / breaking inheritance

Posted by Ron Piterman <rp...@gmx.net>.
Leonardo Quijano Vincenzi wrote:
> "Component bean"?
> 
> This is beginning to sound like JSF, hehe.
> 

Model / Controller ?


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


Re: About 4.1 / breaking inheritance

Posted by Leonardo Quijano Vincenzi <le...@dtqsoftware.com>.
"Component bean"?

This is beginning to sound like JSF, hehe.

-- 
Ing. Leonardo Quijano Vincenzi
DTQ Software


Geoff Longman wrote:
> The only time I ever heard the technical term 'peer' was in
> discussions of the implementation of AWT.
>
> In AWT, the peer is the wrapper around a native GUI widget, quite the
> opposite of your definition of peer the way I read it.
>
> It's trivia and I don't know how many out there are AWT aware (I am
> 'cuz I was building apps in java 1.1) but is it a good idea to
> redefine the term?
>
> Geoff
>   



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


Re: About 4.1 / breaking inheritance

Posted by Geoff Longman <gl...@gmail.com>.
The only time I ever heard the technical term 'peer' was in
discussions of the implementation of AWT.

In AWT, the peer is the wrapper around a native GUI widget, quite the
opposite of your definition of peer the way I read it.

It's trivia and I don't know how many out there are AWT aware (I am
'cuz I was building apps in java 1.1) but is it a good idea to
redefine the term?

Geoff

On 12/20/05, Howard Lewis Ship <hl...@gmail.com> wrote:
> This is something I've been aiming at for a while.
>
> I will speak of components; this also applies to pages as well.
>
> In Tapestry, components are objects that have a number of concerns.
> The most basic concerns are:
> - transient and persistent property management (via enhanced subclass)
> - access to message catalog (via enhanced subclass)
> - access to parameter bindings, assets, meta-data (via super-class)
> - component heirarchy structure (parent and child components, etc.)
> (via super-class)
> - lifecycle management (via enhancement and/or super-class)
> - custom buisness logic (methods of class)
>
> ... etc.
>
> Now, there's an inherent tug-of-war between the super-class
> (BaseComponent, AbstractComponent) and the user-provided sub-class.
>
> There's a lot of API inherited from the base class that, in most
> cases, the user class has no need or rigtht to access.  For example,
> from the user class point of view, the structure of the component and
> it's specification should be immutable, yet there are many add and set
> methods exposed, waiting to be mis-used.
>
> As has been seen in the last couple of years with the interest in
> POJOs, inheritance is problematic; it increases the "surface area" of
> the API.
>
> Tapestry 4.0, with its emphasis on injecting anything and everything
> into a class via abstract properties, sets the stage for properly
> addressing this issue.
>
> My vision is to divide what is today the "component" into two pieces,
> which (for the moment) I call the "peer" and the "resources".
>
> The peer is a user supplied class, as today, but not needing to extend
> from a Tapestry base class.
>
> The component is a fixed implementation, private to Tapestry.
>
> The resources is a "bridge", injected into the peer, that gives the
> peer limited access to the structure, bindings, assets, and so forth,
> of the component.  It's a facade over portions of the component and
> page APIs.
>
> The advantage here is that we'll have a much more straightforward
> relationship between the framework and the user code.   This will
> quickly allow the framework to evolve internally without fear of
> affecting user code. We will be able to migrate towards an approach
> that separates user-related APIs from Tapestry internal APIs.  Right
> now they're all in one big blob, which brings many changes into
> conflict between fixing bugs and APIs and maintaining backwards
> compatibility.
>
> My ultimate vision is that the API for Tapestry, the "public" portion
> used by end users, will shrink markedly, and be a few event interfaces
> and a handful of read-only interfaces.
>
> Of course, new versions of the existing base classes will be kept
> around to provide backwards compatibility.  As I envision it, the base
> classes will largely be reworked to delegate to the "resources"
> object.
>
> Many issues still remain to be resolved in my head.
>
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>
>


--
The Spindle guy.           http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Announcement Feed:    
http://www.jroller.com/rss/glongman?catname=/Announcements
Feature Updates:            http://spindle.sf.net/updates

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


Re: About 4.1 / breaking inheritance

Posted by Howard Lewis Ship <hl...@gmail.com>.
Actually, one of the justifications for this is *easier* unit testing.

Currently, to test some of the behavior of a class ... say rendering
its body or informal parameters, requires a lot of machinations to, in
effect, test code inside AbstractComponent.  Even with EasyMock that's
a lot of work.

With this new design, rending of informal parameters will be a method
invocation on the ComponentResources object injected into the "peer"
class.  Much easier!

On 12/20/05, Kevin Menard <km...@servprise.com> wrote:
> While I like the technical justification for all this, I do wonder about how
> much it'll increase complexity.  T3 had a bit of a steep learning curve, T4
> seems to have only amplified the problem by throwing HiveMind into the mix.
> I certainly enjoy the flexibility we have now and the ability to test things
> far easier.  On the other hand, I have a lot more configuration going on
> that really can't be checked until runtime and a lot more interfaces kicking
> around.  My project sizes have definitely grown considerably in breadth,
> which can be a bit overwhelming at times.
>
> So, I like the general idea of where you want to take Tapestry.  I just want
> to make sure that a) the bar of entry isn't set ridiculously high and b)
> that in the pursuit of flexibility and using POJOs for everything that new
> problems are being introduced.
>
> --
> Kevin
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>
>


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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


Re: About 4.1 / breaking inheritance

Posted by Danny Angus <Da...@slc.co.uk>.

Howard wrote:

> My vision is to divide what is today the "component" into two pieces,
> which (for the moment) I call the "peer" and the "resources".

> The peer is a user supplied class, as today, but not needing to extend
> from a Tapestry base class.

> The component is a fixed implementation, private to Tapestry.

Great stuff Howard,
Get the public API right and you can decouple the framework from
applications enough to make user upgrades straightforward even for quite
significant internal changes.

I hope you're planning to design the API in a "clean room" to be the best
fit users' requirements then change the framework to fit the API.
One of the most attractive features of Tapestry is component reuse, but
this can sometimes be undermined (a bit, not a lot) by tight coupling with
the framework, and by the fact that Tapestry constrains the way in which we
can use inheritance and polymorphism in the bits we (users) write. Many of
the most useful examples of java technologies are based around wholly
abstract API's, with some boilerplate thrown in, IMHO it would be a big
step forward for Tapestry to adopt this pattern too.

Are you going to post your initial ideas about the basic entities, event
model and component interfaces for us to give you feedback on?

d.


***************************************************************************
The information in this e-mail is confidential and for use by the addressee(s) only. If you are not the intended recipient (or responsible for delivery of the message to the intended recipient) please notify us immediately on 0141 306 2050 and delete the message from your computer. You may not copy or forward it or use or disclose its contents to any other person. As Internet communications are capable of data corruption Student Loans Company Limited does not accept any  responsibility for changes made to this message after it was sent. For this reason it may be inappropriate to rely on advice or opinions contained in an e-mail without obtaining written confirmation of it. Neither Student Loans Company Limited or the sender accepts any liability or responsibility for viruses as it is your responsibility to scan attachments (if any). Opinions and views expressed in this e-mail are those of the sender and may not reflect the opinions and views of The Student Loans Company Limit
 ed.

This footnote also confirms that this email message has been swept for the presence of computer viruses.

**************************************************************************

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


Re: About 4.1 / breaking inheritance

Posted by Kevin Menard <km...@servprise.com>.
While I like the technical justification for all this, I do wonder about how
much it'll increase complexity.  T3 had a bit of a steep learning curve, T4
seems to have only amplified the problem by throwing HiveMind into the mix.
I certainly enjoy the flexibility we have now and the ability to test things
far easier.  On the other hand, I have a lot more configuration going on
that really can't be checked until runtime and a lot more interfaces kicking
around.  My project sizes have definitely grown considerably in breadth,
which can be a bit overwhelming at times.

So, I like the general idea of where you want to take Tapestry.  I just want
to make sure that a) the bar of entry isn't set ridiculously high and b)
that in the pursuit of flexibility and using POJOs for everything that new
problems are being introduced.

-- 
Kevin



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