You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Paulo Renato de Athaydes <re...@hotmail.com> on 2014/07/20 23:57:24 UTC
Using IPojo and Groovy
Hi.
I wrote a little IPojo application and it works great, except when I try to use Groovy in one of the bundles (to design the UI, which is a great job for using Groovy).
I noticed that the IPojo manipulator did not seem to know how to deal with Groovy so no IPojo metadata was added to the manifest and I assume no bytecode was altered as it should have.
Is there any way to make a @Component written in Groovy work?
Thanks,
Renato
Re: Using IPojo and Groovy
Posted by Miles B <mi...@gmail.com>.
I had a very similar problem and unfortunately called it a day. If memory
serves it's the way iPOJO is scanning for references. You may have better
luck using the @CompileStatic annotation on the class which may help.
On Mon, Jul 21, 2014 at 7:00 PM, Paulo Renato de Athaydes <
renatoathaydes@hotmail.com> wrote:
> I have tried all I could... unfortunately IPojo does not seem to work
> with Groovy classes.But that's ok, the Java Component can always hand over
> the real work to some Groovy class.
>
>
> Renato
> > Date: Mon, 21 Jul 2014 11:57:04 +0200
> > From: clement.escoffier@gmail.com
> > To: users@felix.apache.org
> > Subject: Re: Using IPojo and Groovy
> >
> > Hi,
> >
> > On 20 juillet 2014 at 23:57:53, Paulo Renato de Athaydes (
> renatoathaydes@hotmail.com) wrote:
> > Hi.
> > I wrote a little IPojo application and it works great, except when I try
> to use Groovy in one of the bundles (to design the UI, which is a great job
> for using Groovy).
> > I noticed that the IPojo manipulator did not seem to know how to deal
> with Groovy so no IPojo metadata was added to the manifest and I assume no
> bytecode was altered as it should have.
> > Is there any way to make a @Component written in Groovy work?
> > The iPOJO manipulator handles bytecode, so as soon as you have the byte
> code of a class annotated with @Component, it should be manipulated. Just
> be sure that the .class are generated at compile time.
> >
> > Cheers,
> >
> >
> >
> > Clement
> >
> >
> > Thanks,
> > Renato
>
>
--
Many thanks,
Miles Burton
RE: Using IPojo and Groovy
Posted by Paulo Renato de Athaydes <re...@hotmail.com>.
I have tried all I could... unfortunately IPojo does not seem to work with Groovy classes.But that's ok, the Java Component can always hand over the real work to some Groovy class.
Renato
> Date: Mon, 21 Jul 2014 11:57:04 +0200
> From: clement.escoffier@gmail.com
> To: users@felix.apache.org
> Subject: Re: Using IPojo and Groovy
>
> Hi,
>
> On 20 juillet 2014 at 23:57:53, Paulo Renato de Athaydes (renatoathaydes@hotmail.com) wrote:
> Hi.
> I wrote a little IPojo application and it works great, except when I try to use Groovy in one of the bundles (to design the UI, which is a great job for using Groovy).
> I noticed that the IPojo manipulator did not seem to know how to deal with Groovy so no IPojo metadata was added to the manifest and I assume no bytecode was altered as it should have.
> Is there any way to make a @Component written in Groovy work?
> The iPOJO manipulator handles bytecode, so as soon as you have the byte code of a class annotated with @Component, it should be manipulated. Just be sure that the .class are generated at compile time.
>
> Cheers,
>
>
>
> Clement
>
>
> Thanks,
> Renato
Re: Using IPojo and Groovy
Posted by Clement Escoffier <cl...@gmail.com>.
Hi,
On 20 juillet 2014 at 23:57:53, Paulo Renato de Athaydes (renatoathaydes@hotmail.com) wrote:
Hi.
I wrote a little IPojo application and it works great, except when I try to use Groovy in one of the bundles (to design the UI, which is a great job for using Groovy).
I noticed that the IPojo manipulator did not seem to know how to deal with Groovy so no IPojo metadata was added to the manifest and I assume no bytecode was altered as it should have.
Is there any way to make a @Component written in Groovy work?
The iPOJO manipulator handles bytecode, so as soon as you have the byte code of a class annotated with @Component, it should be manipulated. Just be sure that the .class are generated at compile time.
Cheers,
Clement
Thanks,
Renato