Thanks Taha & Josh, I will give it a try and later post back the result here.
Thanks, Rendy. On Fri, Aug 5, 2011 at 2:27 PM, Taha Hafeez <tawus.tapes...@gmail.com>wrote: > I don't think you need ComponentClassTransformationWorker. What you > need is, as Josh said, a service advice > > http://tapestry.apache.org/service-advisors.html > > Now the tricky part is where to apply it. As Josh said, if you expose > your resources as services you will be able to apply advises and even > use injection. > > By "exposing as service" I mean create an interface and its > implementation and bind using ServiceBinder. Then you can add that > resource to resteasy as > > public static void contributeApplication(Configuration<Object> > singletons, ObjectLocator locator) > { > singletons.add(locator.autobuild(MyDomainObjectResource.class)); > } > > Disclaimer: I have never used tynamo-resteasy and this information is > based on http://tynamo.org/tapestry-resteasy+guide. > > On Fri, Aug 5, 2011 at 8:16 AM, Rendy Tapestry <rendy.tapes...@gmail.com> > wrote: > > Hi Josh, > > > > Might you please elaborate your answer ? I don't get it :) > > > > Thanks, > > Rendy. > > > > On Thu, Aug 4, 2011 at 10:29 PM, Josh Canfield <joshcanfi...@gmail.com > >wrote: > > > >> Also, rest resources can be bound as services to use injection and > advice. > >> On Aug 4, 2011 8:05 AM, "Taha Hafeez" <tawus.tapes...@gmail.com> wrote: > >> > Hi Rendy > >> > > >> > No ComponentClassTransformWorker will not work outside > >> > pages/components package. But class transformation is not the only > >> > reason to keep a special packages. You sometime need to scan classes > >> > for annotations etc and it is easy if you have specific packages > >> > which can be contributed to the scanning service. > >> > > >> > As far as class transformation is concerned, you can transform an > >> > existing class or create a new one by using ClassFab etc classes which > >> > are based on javassist in 5.2+ (on PlasticClass etc in 5.3+). > >> > > >> > Can you elaborate on your problem ? > >> > > >> > On Thu, Aug 4, 2011 at 7:25 PM, Rendy Tapestry < > rendy.tapes...@gmail.com > >> > > >> wrote: > >> >> Hi all, > >> >> > >> >> I have problem with class transformation, my question, will this > class > >> >> transformation work outside from special package (pages for example). > I > >> am > >> >> using restful integration from tynamo which direct me to put my web > >> service > >> >> in rest package. Is the package name matter with class transformation > ? > >> If > >> >> yes, how could I solve my problem ? > >> >> > >> >> Thanks, > >> >> > >> >> Rendy. > >> >> > >> >> ps. I am using tapestry 5.2.5 (ComponentClassTransformWorker) > >> >> > >> > > >> > > >> > > >> > -- > >> > Regards > >> > > >> > Taha Hafeez Siddiqi (tawus) > >> > http://tawus.wordpress.com > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >> > For additional commands, e-mail: users-h...@tapestry.apache.org > >> > > >> > > > > > > -- > Regards > > Taha Hafeez Siddiqi (tawus) > http://tawus.wordpress.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >