tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Greene" <agre...@iq-2000.com>
Subject Re: T4 DataSqueezer/SqueezeAdaptor, Spring & Hibernate
Date Sat, 03 Sep 2005 00:14:37 GMT
Ok, first thing right off.  You do not need to subclass BaseEngine.  The 
steps are :

1. Your class implements org.apache.tapestry.services.DataSqueezer.
2.  Setup your class as a service in hivemodule.xml:
3.  Then contribute to the tapestry.data.SqueezeAdaptors configuration 
point, put something like this in your hivemodule.xml:

<contribution configuration-id="tapestry.data.SqueezeAdaptors">
    <adaptor object="service:YourAdaptor"/>
</contribution>

if you look at tapestry-4.0.jar!/META-INF/tapestry-data.xml, you will see 
how this all works.  The examples there are based on "instance:" but you can 
use "service:"

----- Original Message ----- 
From: "Adam Henderson Azudio" <azudio_web@hotmail.com>
To: "Tapestry users" <tapestry-user@jakarta.apache.org>
Sent: Friday, September 02, 2005 11:22 AM
Subject: T4 DataSqueezer/SqueezeAdaptor, Spring & Hibernate


> Hi,
>
> I've written a SqueezeAdaptor for use with my Hibernate entities and  it 
> works well in T3.
>
> My HibernateSqueezeAdaptor unsqueezes the string by decoding a entity 
> type code along with the id, then it accesses my Spring appService  bean 
> and asks it to retrieve my entity.
>
> I'm attempting to upgrade/convert to T4 and I'm a bit stumped as how  to 
> do the conversion.
>
> How do I create and register a SqueezeAdaptor that uses a Spring  service 
> object, what do I put in my subclass of BaseEngine?, do I  need to 
> subclass BaseEngine? How do I inject my spring service into  my adaptor? 
> Do I need a hivemodule.xml? if so what do I put in it?
>
> What would be the logical steps needed to implement this. Also is  there 
> any security issues with what I'm doing?
>
> Many thanks
>
> Adam.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
> 


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


Mime
View raw message