It is pointless to get into design improvements to Tapestry IoC along these
lines, but I would certainly do things a bit differently, now that Plastic
is available in the arsenal. I think a hypotehtical IoC would do much more
bytecode manipualtion ala components and pages; I also had some interesting
thoughts I may pursue in the future, about organizing the IoC as a
container of functions (leveraging generics and other things), and not a
container of interfaces&implementations.


On Fri, Jun 28, 2013 at 12:51 PM, Howard Lewis Ship <hls...@gmail.com>wrote:

> Yes, but it is optional.  Anything you don't want to specify using an
> annotation on the interface can be specified instead using the
> ServiceBinder interface, or as an annotation on a module method.
>
> Ok, in this case, if you want to use the Tapestry-specific magic, you get
> to use the Tapestry-specific annotation.
>
> If you don't like that, you can inject the underlying JPASessionManager
> service and get/commit the transaction yourself.  Or create a
> Tapestry-facing Facade with the Tapestry annotations whose implementation
> delegates to the "vanilla" interface.
>
>
> On Fri, Jun 28, 2013 at 6:27 AM, Thiago H de Paula Figueiredo <
> thiag...@gmail.com> wrote:
>
>> On Thu, 27 Jun 2013 06:05:14 -0300, <no-re...@comments.apache.org> wrote:
>>
>>  Hello,
>>> John has commented on http://tapestry.apache.org/**
>>> integrating-with-jpa.html<http://tapestry.apache.org/integrating-with-jpa.html>
>>> .
>>> You can find the comment here:
>>> http://tapestry.apache.org/**integrating-with-jpa.html#**comment_1410<http://tapestry.apache.org/integrating-with-jpa.html#comment_1410>
>>> Please note that if the comment contains a hyperlink, it must be approved
>>> before it is shown on the site.
>>>
>>> Below is the reply that was posted:
>>> ~~~~
>>> Adding implementations specific annotations to the service interfaces
>>> breaks the interface/implementation independence.
>>> ~~~~
>>>
>>
>> I agree with this. What do you guys think? I think this is a serious
>> shotcoming in Tapestry-IoC.
>>
>> --
>> Thiago H. de Paula Figueiredo
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: 
>> dev-unsubscribe@tapestry.**apache.org<dev-unsubscr...@tapestry.apache.org>
>> For additional commands, e-mail: dev-h...@tapestry.apache.org
>>
>>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

Reply via email to