You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Michiel Vermandel <mv...@yahoo.com> on 2013/04/25 06:43:56 UTC
[iPOJO] @Provides class not detected
Hi,
I'm new to iPOJO, so I hope I did not overlook the obvious.
I created a simple bundle with one class that has the @Component an @Provides annotation, but it does not show up in iPOJO gogo arch .
I installed iPOJO in Felix:
START LEVEL 1
ID|State |Level|Name
0|Active | 0|System Bundle (4.0.3)
1|Active | 1|Apache Felix Bundle Repository (1.6.6)
2|Active | 1|Apache Felix Configuration Admin Service (1.6.0)
...
10|Active | 1|Apache Felix iPOJO Annotations (1.8.6)
11|Active | 1|Apache Felix iPOJO (1.8.6)
16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
My class:
package com.ce.flowbeans.core;
import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Provides;
import com.ce.flowbeans.model.FlowAdmin;
@Component
@Provides
public class FlowAdminImpl implements FlowAdmin {
@Override
public void sayHello() {
System.out.println("I say hello");
}
}
After I created and installed the bundle into Felix I check with the iPOJO gogo "instances" command and I see this:
...
16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
18|Active | 1|FlowBeans Core (1.0.0.SNAPSHOT)
g! instances
Instance org.apache.felix.ipojo.IPOJOURLHandler-0 -> valid
Instance org.apache.felix.ipojo.arch.gogo.Arch-0 -> valid
but no com.ce.flowbeans.core.FlowAdminImpl.
Am I forgetting anything?
Thanks!
Michiel
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials
Re: [iPOJO] @Provides class not detected
Posted by Michiel Vermandel <mv...@yahoo.com>.
Hi Thomas and Clement,
Thank you for the info.
I succeeded in adding the manipulation into my custom builder.
Thanks a lot!
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials
________________________________
From: Thomas Calmant <th...@gmail.com>
To: users@felix.apache.org
Cc: Michiel Vermandel <mv...@yahoo.com>
Sent: Thursday, April 25, 2013 5:02 PM
Subject: Re: [iPOJO] @Provides class not detected
Hi,
An integration of the iPOJO manipulation in Eclipse already exists (see
http://gitorious.ow2.org/ow2-chameleon/eclipse-ipojo-builder/).
It is based on the development version of iPOJO.
The manipulation code is available here:
http://gitorious.ow2.org/ow2-chameleon/eclipse-ipojo-builder/blobs/develop/trunk/plugins/org.ow2.chameleon.eclipse.ipojo.nature/src/org/ow2/chameleon/eclipse/ipojo/core/
(in the ManifestUpdater en EclipsePojoization classes)
Regards,
Thomas
2013/4/25 Clement Escoffier <cl...@gmail.com>
> Hi,
>
> Yes you can. The entry point is the Pojoization class. You can also use an
> external Ant builder to integrate it in Eclipse.
>
> Regards,
>
> Clement
>
>
> On 25 avr. 2013, at 10:03, Michiel Vermandel <mv...@yahoo.com> wrote:
>
> > No it is not... I was checking that right now.
> > I'm not using Maven nor Ant. I have a custom builder and deployer.
> > Can I call the manipulator manually from java code? (in a custom Eclipse
> builder)
> >
> > Thanks
> >
> >
> >
> > -----------------
> > http://www.codessentials.com - Your essential software, for free!
> > Follow us at http://twitter.com/#!/Codessentials
> >
> >
> > ________________________________
> > From: Clement Escoffier <cl...@gmail.com>
> > To: users@felix.apache.org; Michiel Vermandel <mv...@yahoo.com>
> > Sent: Thursday, April 25, 2013 9:53 AM
> > Subject: Re: [iPOJO] @Provides class not detected
> >
> >
> > Hi,
> >
> > Is your bundle manipulated, i.e. build with the iPOJO maven plugin or
> Ant task ?
> >
> > Regards,
> >
> > Clement
> >
> > On 25 avr. 2013, at 07:46, Michiel Vermandel <mv...@yahoo.com> wrote:
> >
> >> Hi,
> >>
> >> Do you mean like this:
> >>
> >> package com.ce.flowbeans.core;
> >>
> >> import org.apache.felix.ipojo.annotations.Component;
> >> import org.apache.felix.ipojo.annotations.Instantiate;
> >> import org.apache.felix.ipojo.annotations.Provides;
> >>
> >> import com.ce.flowbeans.model.FlowAdmin;
> >>
> >> @Component
> >> @Instantiate
> >> @Provides
> >> public class FlowAdminImpl implements FlowAdmin {
> >>
> >> @Override
> >> public void sayHello() {
> >> System.out.println("I say hello ");
> >> }
> >>
> >> }
> >>
> >>
> >> It doesn't make any difference.
> >> By the way I do not use bnd to build my bundles, but I think that
> shouldn't be a problem,right?
> >>
> >> Thanks
> >>
> >>
> >>
> >>
> >> -----------------
> >> http://www.codessentials.com - Your essential software, for free!
> >> Follow us at http://twitter.com/#!/Codessentials
> >>
> >>
> >> ________________________________
> >> From: lessonz <le...@gmail.com>
> >> To: users@felix.apache.org
> >> Sent: Thursday, April 25, 2013 7:35 AM
> >> Subject: Re: [iPOJO] @Provides class not detected
> >>
> >>
> >> Perhaps you aren't instantiating it by way of metadata or the
> @Instantiate
> >> annotation?
> >> On Apr 24, 2013 10:44 PM, "Michiel Vermandel" <mv...@yahoo.com>
> wrote:
> >>
> >>> Hi,
> >>>
> >>> I'm new to iPOJO, so I hope I did not overlook the obvious.
> >>> I created a simple bundle with one class that has the @Component an
> >>> @Provides annotation, but it does not show up in iPOJO gogo arch .
> >>>
> >>> I installed iPOJO in Felix:
> >>> START LEVEL 1
> >>> ID|State |Level|Name
> >>> 0|Active | 0|System Bundle (4.0.3)
> >>> 1|Active | 1|Apache Felix Bundle Repository (1.6.6)
> >>> 2|Active | 1|Apache Felix Configuration Admin Service
> (1.6.0)
> >>> ...
> >>> 10|Active | 1|Apache Felix iPOJO Annotations (1.8.6)
> >>> 11|Active | 1|Apache Felix iPOJO (1.8.6)
> >>> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
> >>>
> >>>
> >>> My class:
> >>>
> >>> package com.ce.flowbeans.core;
> >>>
> >>> import org.apache.felix.ipojo.annotations.Component;
> >>> import org.apache.felix.ipojo.annotations.Provides;
> >>>
> >>> import com.ce.flowbeans.model.FlowAdmin;
> >>>
> >>> @Component
> >>> @Provides
> >>> public class FlowAdminImpl implements FlowAdmin {
> >>>
> >>> @Override
> >>> public void sayHello() {
> >>> System.out.println("I say hello");
> >>> }
> >>>
> >>> }
> >>>
> >>>
> >>> After I created and installed the bundle into Felix I check with the
> iPOJO
> >>> gogo "instances" command and I see this:
> >>> ...
> >>> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
> >>> 18|Active | 1|FlowBeans Core (1.0.0.SNAPSHOT)
> >>> g! instances
> >>> Instance org.apache.felix.ipojo.IPOJOURLHandler-0 -> valid
> >>> Instance org.apache.felix.ipojo.arch.gogo.Arch-0 -> valid
> >>>
> >>>
> >>> but no com.ce.flowbeans.core.FlowAdminImpl.
> >>>
> >>> Am I forgetting anything?
> >>>
> >>> Thanks!
> >>>
> >>> Michiel
> >>>
> >>>
> >>> -----------------
> >>> http://www.codessentials.com - Your essential software, for free!
> >>> Follow us at http://twitter.com/#!/Codessentials
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
Re: [iPOJO] @Provides class not detected
Posted by Thomas Calmant <th...@gmail.com>.
Hi,
An integration of the iPOJO manipulation in Eclipse already exists (see
http://gitorious.ow2.org/ow2-chameleon/eclipse-ipojo-builder/).
It is based on the development version of iPOJO.
The manipulation code is available here:
http://gitorious.ow2.org/ow2-chameleon/eclipse-ipojo-builder/blobs/develop/trunk/plugins/org.ow2.chameleon.eclipse.ipojo.nature/src/org/ow2/chameleon/eclipse/ipojo/core/
(in the ManifestUpdater en EclipsePojoization classes)
Regards,
Thomas
2013/4/25 Clement Escoffier <cl...@gmail.com>
> Hi,
>
> Yes you can. The entry point is the Pojoization class. You can also use an
> external Ant builder to integrate it in Eclipse.
>
> Regards,
>
> Clement
>
>
> On 25 avr. 2013, at 10:03, Michiel Vermandel <mv...@yahoo.com> wrote:
>
> > No it is not... I was checking that right now.
> > I'm not using Maven nor Ant. I have a custom builder and deployer.
> > Can I call the manipulator manually from java code? (in a custom Eclipse
> builder)
> >
> > Thanks
> >
> >
> >
> > -----------------
> > http://www.codessentials.com - Your essential software, for free!
> > Follow us at http://twitter.com/#!/Codessentials
> >
> >
> > ________________________________
> > From: Clement Escoffier <cl...@gmail.com>
> > To: users@felix.apache.org; Michiel Vermandel <mv...@yahoo.com>
> > Sent: Thursday, April 25, 2013 9:53 AM
> > Subject: Re: [iPOJO] @Provides class not detected
> >
> >
> > Hi,
> >
> > Is your bundle manipulated, i.e. build with the iPOJO maven plugin or
> Ant task ?
> >
> > Regards,
> >
> > Clement
> >
> > On 25 avr. 2013, at 07:46, Michiel Vermandel <mv...@yahoo.com> wrote:
> >
> >> Hi,
> >>
> >> Do you mean like this:
> >>
> >> package com.ce.flowbeans.core;
> >>
> >> import org.apache.felix.ipojo.annotations.Component;
> >> import org.apache.felix.ipojo.annotations.Instantiate;
> >> import org.apache.felix.ipojo.annotations.Provides;
> >>
> >> import com.ce.flowbeans.model.FlowAdmin;
> >>
> >> @Component
> >> @Instantiate
> >> @Provides
> >> public class FlowAdminImpl implements FlowAdmin {
> >>
> >> @Override
> >> public void sayHello() {
> >> System.out.println("I say hello ");
> >> }
> >>
> >> }
> >>
> >>
> >> It doesn't make any difference.
> >> By the way I do not use bnd to build my bundles, but I think that
> shouldn't be a problem,right?
> >>
> >> Thanks
> >>
> >>
> >>
> >>
> >> -----------------
> >> http://www.codessentials.com - Your essential software, for free!
> >> Follow us at http://twitter.com/#!/Codessentials
> >>
> >>
> >> ________________________________
> >> From: lessonz <le...@gmail.com>
> >> To: users@felix.apache.org
> >> Sent: Thursday, April 25, 2013 7:35 AM
> >> Subject: Re: [iPOJO] @Provides class not detected
> >>
> >>
> >> Perhaps you aren't instantiating it by way of metadata or the
> @Instantiate
> >> annotation?
> >> On Apr 24, 2013 10:44 PM, "Michiel Vermandel" <mv...@yahoo.com>
> wrote:
> >>
> >>> Hi,
> >>>
> >>> I'm new to iPOJO, so I hope I did not overlook the obvious.
> >>> I created a simple bundle with one class that has the @Component an
> >>> @Provides annotation, but it does not show up in iPOJO gogo arch .
> >>>
> >>> I installed iPOJO in Felix:
> >>> START LEVEL 1
> >>> ID|State |Level|Name
> >>> 0|Active | 0|System Bundle (4.0.3)
> >>> 1|Active | 1|Apache Felix Bundle Repository (1.6.6)
> >>> 2|Active | 1|Apache Felix Configuration Admin Service
> (1.6.0)
> >>> ...
> >>> 10|Active | 1|Apache Felix iPOJO Annotations (1.8.6)
> >>> 11|Active | 1|Apache Felix iPOJO (1.8.6)
> >>> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
> >>>
> >>>
> >>> My class:
> >>>
> >>> package com.ce.flowbeans.core;
> >>>
> >>> import org.apache.felix.ipojo.annotations.Component;
> >>> import org.apache.felix.ipojo.annotations.Provides;
> >>>
> >>> import com.ce.flowbeans.model.FlowAdmin;
> >>>
> >>> @Component
> >>> @Provides
> >>> public class FlowAdminImpl implements FlowAdmin {
> >>>
> >>> @Override
> >>> public void sayHello() {
> >>> System.out.println("I say hello");
> >>> }
> >>>
> >>> }
> >>>
> >>>
> >>> After I created and installed the bundle into Felix I check with the
> iPOJO
> >>> gogo "instances" command and I see this:
> >>> ...
> >>> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
> >>> 18|Active | 1|FlowBeans Core (1.0.0.SNAPSHOT)
> >>> g! instances
> >>> Instance org.apache.felix.ipojo.IPOJOURLHandler-0 -> valid
> >>> Instance org.apache.felix.ipojo.arch.gogo.Arch-0 -> valid
> >>>
> >>>
> >>> but no com.ce.flowbeans.core.FlowAdminImpl.
> >>>
> >>> Am I forgetting anything?
> >>>
> >>> Thanks!
> >>>
> >>> Michiel
> >>>
> >>>
> >>> -----------------
> >>> http://www.codessentials.com - Your essential software, for free!
> >>> Follow us at http://twitter.com/#!/Codessentials
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
Re: [iPOJO] @Provides class not detected
Posted by Clement Escoffier <cl...@gmail.com>.
Hi,
Yes you can. The entry point is the Pojoization class. You can also use an external Ant builder to integrate it in Eclipse.
Regards,
Clement
On 25 avr. 2013, at 10:03, Michiel Vermandel <mv...@yahoo.com> wrote:
> No it is not... I was checking that right now.
> I'm not using Maven nor Ant. I have a custom builder and deployer.
> Can I call the manipulator manually from java code? (in a custom Eclipse builder)
>
> Thanks
>
>
>
> -----------------
> http://www.codessentials.com - Your essential software, for free!
> Follow us at http://twitter.com/#!/Codessentials
>
>
> ________________________________
> From: Clement Escoffier <cl...@gmail.com>
> To: users@felix.apache.org; Michiel Vermandel <mv...@yahoo.com>
> Sent: Thursday, April 25, 2013 9:53 AM
> Subject: Re: [iPOJO] @Provides class not detected
>
>
> Hi,
>
> Is your bundle manipulated, i.e. build with the iPOJO maven plugin or Ant task ?
>
> Regards,
>
> Clement
>
> On 25 avr. 2013, at 07:46, Michiel Vermandel <mv...@yahoo.com> wrote:
>
>> Hi,
>>
>> Do you mean like this:
>>
>> package com.ce.flowbeans.core;
>>
>> import org.apache.felix.ipojo.annotations.Component;
>> import org.apache.felix.ipojo.annotations.Instantiate;
>> import org.apache.felix.ipojo.annotations.Provides;
>>
>> import com.ce.flowbeans.model.FlowAdmin;
>>
>> @Component
>> @Instantiate
>> @Provides
>> public class FlowAdminImpl implements FlowAdmin {
>>
>> @Override
>> public void sayHello() {
>> System.out.println("I say hello ");
>> }
>>
>> }
>>
>>
>> It doesn't make any difference.
>> By the way I do not use bnd to build my bundles, but I think that shouldn't be a problem,right?
>>
>> Thanks
>>
>>
>>
>>
>> -----------------
>> http://www.codessentials.com - Your essential software, for free!
>> Follow us at http://twitter.com/#!/Codessentials
>>
>>
>> ________________________________
>> From: lessonz <le...@gmail.com>
>> To: users@felix.apache.org
>> Sent: Thursday, April 25, 2013 7:35 AM
>> Subject: Re: [iPOJO] @Provides class not detected
>>
>>
>> Perhaps you aren't instantiating it by way of metadata or the @Instantiate
>> annotation?
>> On Apr 24, 2013 10:44 PM, "Michiel Vermandel" <mv...@yahoo.com> wrote:
>>
>>> Hi,
>>>
>>> I'm new to iPOJO, so I hope I did not overlook the obvious.
>>> I created a simple bundle with one class that has the @Component an
>>> @Provides annotation, but it does not show up in iPOJO gogo arch .
>>>
>>> I installed iPOJO in Felix:
>>> START LEVEL 1
>>> ID|State |Level|Name
>>> 0|Active | 0|System Bundle (4.0.3)
>>> 1|Active | 1|Apache Felix Bundle Repository (1.6.6)
>>> 2|Active | 1|Apache Felix Configuration Admin Service (1.6.0)
>>> ...
>>> 10|Active | 1|Apache Felix iPOJO Annotations (1.8.6)
>>> 11|Active | 1|Apache Felix iPOJO (1.8.6)
>>> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
>>>
>>>
>>> My class:
>>>
>>> package com.ce.flowbeans.core;
>>>
>>> import org.apache.felix.ipojo.annotations.Component;
>>> import org.apache.felix.ipojo.annotations.Provides;
>>>
>>> import com.ce.flowbeans.model.FlowAdmin;
>>>
>>> @Component
>>> @Provides
>>> public class FlowAdminImpl implements FlowAdmin {
>>>
>>> @Override
>>> public void sayHello() {
>>> System.out.println("I say hello");
>>> }
>>>
>>> }
>>>
>>>
>>> After I created and installed the bundle into Felix I check with the iPOJO
>>> gogo "instances" command and I see this:
>>> ...
>>> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
>>> 18|Active | 1|FlowBeans Core (1.0.0.SNAPSHOT)
>>> g! instances
>>> Instance org.apache.felix.ipojo.IPOJOURLHandler-0 -> valid
>>> Instance org.apache.felix.ipojo.arch.gogo.Arch-0 -> valid
>>>
>>>
>>> but no com.ce.flowbeans.core.FlowAdminImpl.
>>>
>>> Am I forgetting anything?
>>>
>>> Thanks!
>>>
>>> Michiel
>>>
>>>
>>> -----------------
>>> http://www.codessentials.com - Your essential software, for free!
>>> Follow us at http://twitter.com/#!/Codessentials
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: [iPOJO] @Provides class not detected
Posted by Michiel Vermandel <mv...@yahoo.com>.
No it is not... I was checking that right now.
I'm not using Maven nor Ant. I have a custom builder and deployer.
Can I call the manipulator manually from java code? (in a custom Eclipse builder)
Thanks
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials
________________________________
From: Clement Escoffier <cl...@gmail.com>
To: users@felix.apache.org; Michiel Vermandel <mv...@yahoo.com>
Sent: Thursday, April 25, 2013 9:53 AM
Subject: Re: [iPOJO] @Provides class not detected
Hi,
Is your bundle manipulated, i.e. build with the iPOJO maven plugin or Ant task ?
Regards,
Clement
On 25 avr. 2013, at 07:46, Michiel Vermandel <mv...@yahoo.com> wrote:
> Hi,
>
> Do you mean like this:
>
> package com.ce.flowbeans.core;
>
> import org.apache.felix.ipojo.annotations.Component;
> import org.apache.felix.ipojo.annotations.Instantiate;
> import org.apache.felix.ipojo.annotations.Provides;
>
> import com.ce.flowbeans.model.FlowAdmin;
>
> @Component
> @Instantiate
> @Provides
> public class FlowAdminImpl implements FlowAdmin {
>
> @Override
> public void sayHello() {
> System.out.println("I say hello ");
> }
>
> }
>
>
> It doesn't make any difference.
> By the way I do not use bnd to build my bundles, but I think that shouldn't be a problem,right?
>
> Thanks
>
>
>
>
> -----------------
> http://www.codessentials.com - Your essential software, for free!
> Follow us at http://twitter.com/#!/Codessentials
>
>
> ________________________________
> From: lessonz <le...@gmail.com>
> To: users@felix.apache.org
> Sent: Thursday, April 25, 2013 7:35 AM
> Subject: Re: [iPOJO] @Provides class not detected
>
>
> Perhaps you aren't instantiating it by way of metadata or the @Instantiate
> annotation?
> On Apr 24, 2013 10:44 PM, "Michiel Vermandel" <mv...@yahoo.com> wrote:
>
>> Hi,
>>
>> I'm new to iPOJO, so I hope I did not overlook the obvious.
>> I created a simple bundle with one class that has the @Component an
>> @Provides annotation, but it does not show up in iPOJO gogo arch .
>>
>> I installed iPOJO in Felix:
>> START LEVEL 1
>> ID|State |Level|Name
>> 0|Active | 0|System Bundle (4.0.3)
>> 1|Active | 1|Apache Felix Bundle Repository (1.6.6)
>> 2|Active | 1|Apache Felix Configuration Admin Service (1.6.0)
>> ...
>> 10|Active | 1|Apache Felix iPOJO Annotations (1.8.6)
>> 11|Active | 1|Apache Felix iPOJO (1.8.6)
>> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
>>
>>
>> My class:
>>
>> package com.ce.flowbeans.core;
>>
>> import org.apache.felix.ipojo.annotations.Component;
>> import org.apache.felix.ipojo.annotations.Provides;
>>
>> import com.ce.flowbeans.model.FlowAdmin;
>>
>> @Component
>> @Provides
>> public class FlowAdminImpl implements FlowAdmin {
>>
>> @Override
>> public void sayHello() {
>> System.out.println("I say hello");
>> }
>>
>> }
>>
>>
>> After I created and installed the bundle into Felix I check with the iPOJO
>> gogo "instances" command and I see this:
>> ...
>> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
>> 18|Active | 1|FlowBeans Core (1.0.0.SNAPSHOT)
>> g! instances
>> Instance org.apache.felix.ipojo.IPOJOURLHandler-0 -> valid
>> Instance org.apache.felix.ipojo.arch.gogo.Arch-0 -> valid
>>
>>
>> but no com.ce.flowbeans.core.FlowAdminImpl.
>>
>> Am I forgetting anything?
>>
>> Thanks!
>>
>> Michiel
>>
>>
>> -----------------
>> http://www.codessentials.com - Your essential software, for free!
>> Follow us at http://twitter.com/#!/Codessentials
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: [iPOJO] @Provides class not detected
Posted by Clement Escoffier <cl...@gmail.com>.
Hi,
Is your bundle manipulated, i.e. build with the iPOJO maven plugin or Ant task ?
Regards,
Clement
On 25 avr. 2013, at 07:46, Michiel Vermandel <mv...@yahoo.com> wrote:
> Hi,
>
> Do you mean like this:
>
> package com.ce.flowbeans.core;
>
> import org.apache.felix.ipojo.annotations.Component;
> import org.apache.felix.ipojo.annotations.Instantiate;
> import org.apache.felix.ipojo.annotations.Provides;
>
> import com.ce.flowbeans.model.FlowAdmin;
>
> @Component
> @Instantiate
> @Provides
> public class FlowAdminImpl implements FlowAdmin {
>
> @Override
> public void sayHello() {
> System.out.println("I say hello ");
> }
>
> }
>
>
> It doesn't make any difference.
> By the way I do not use bnd to build my bundles, but I think that shouldn't be a problem,right?
>
> Thanks
>
>
>
>
> -----------------
> http://www.codessentials.com - Your essential software, for free!
> Follow us at http://twitter.com/#!/Codessentials
>
>
> ________________________________
> From: lessonz <le...@gmail.com>
> To: users@felix.apache.org
> Sent: Thursday, April 25, 2013 7:35 AM
> Subject: Re: [iPOJO] @Provides class not detected
>
>
> Perhaps you aren't instantiating it by way of metadata or the @Instantiate
> annotation?
> On Apr 24, 2013 10:44 PM, "Michiel Vermandel" <mv...@yahoo.com> wrote:
>
>> Hi,
>>
>> I'm new to iPOJO, so I hope I did not overlook the obvious.
>> I created a simple bundle with one class that has the @Component an
>> @Provides annotation, but it does not show up in iPOJO gogo arch .
>>
>> I installed iPOJO in Felix:
>> START LEVEL 1
>> ID|State |Level|Name
>> 0|Active | 0|System Bundle (4.0.3)
>> 1|Active | 1|Apache Felix Bundle Repository (1.6.6)
>> 2|Active | 1|Apache Felix Configuration Admin Service (1.6.0)
>> ...
>> 10|Active | 1|Apache Felix iPOJO Annotations (1.8.6)
>> 11|Active | 1|Apache Felix iPOJO (1.8.6)
>> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
>>
>>
>> My class:
>>
>> package com.ce.flowbeans.core;
>>
>> import org.apache.felix.ipojo.annotations.Component;
>> import org.apache.felix.ipojo.annotations.Provides;
>>
>> import com.ce.flowbeans.model.FlowAdmin;
>>
>> @Component
>> @Provides
>> public class FlowAdminImpl implements FlowAdmin {
>>
>> @Override
>> public void sayHello() {
>> System.out.println("I say hello");
>> }
>>
>> }
>>
>>
>> After I created and installed the bundle into Felix I check with the iPOJO
>> gogo "instances" command and I see this:
>> ...
>> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
>> 18|Active | 1|FlowBeans Core (1.0.0.SNAPSHOT)
>> g! instances
>> Instance org.apache.felix.ipojo.IPOJOURLHandler-0 -> valid
>> Instance org.apache.felix.ipojo.arch.gogo.Arch-0 -> valid
>>
>>
>> but no com.ce.flowbeans.core.FlowAdminImpl.
>>
>> Am I forgetting anything?
>>
>> Thanks!
>>
>> Michiel
>>
>>
>> -----------------
>> http://www.codessentials.com - Your essential software, for free!
>> Follow us at http://twitter.com/#!/Codessentials
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: [iPOJO] @Provides class not detected
Posted by Michiel Vermandel <mv...@yahoo.com>.
Hi,
Do you mean like this:
package com.ce.flowbeans.core;
import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Instantiate;
import org.apache.felix.ipojo.annotations.Provides;
import com.ce.flowbeans.model.FlowAdmin;
@Component
@Instantiate
@Provides
public class FlowAdminImpl implements FlowAdmin {
@Override
public void sayHello() {
System.out.println("I say hello ");
}
}
It doesn't make any difference.
By the way I do not use bnd to build my bundles, but I think that shouldn't be a problem,right?
Thanks
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials
________________________________
From: lessonz <le...@gmail.com>
To: users@felix.apache.org
Sent: Thursday, April 25, 2013 7:35 AM
Subject: Re: [iPOJO] @Provides class not detected
Perhaps you aren't instantiating it by way of metadata or the @Instantiate
annotation?
On Apr 24, 2013 10:44 PM, "Michiel Vermandel" <mv...@yahoo.com> wrote:
> Hi,
>
> I'm new to iPOJO, so I hope I did not overlook the obvious.
> I created a simple bundle with one class that has the @Component an
> @Provides annotation, but it does not show up in iPOJO gogo arch .
>
> I installed iPOJO in Felix:
> START LEVEL 1
> ID|State |Level|Name
> 0|Active | 0|System Bundle (4.0.3)
> 1|Active | 1|Apache Felix Bundle Repository (1.6.6)
> 2|Active | 1|Apache Felix Configuration Admin Service (1.6.0)
> ...
> 10|Active | 1|Apache Felix iPOJO Annotations (1.8.6)
> 11|Active | 1|Apache Felix iPOJO (1.8.6)
> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
>
>
> My class:
>
> package com.ce.flowbeans.core;
>
> import org.apache.felix.ipojo.annotations.Component;
> import org.apache.felix.ipojo.annotations.Provides;
>
> import com.ce.flowbeans.model.FlowAdmin;
>
> @Component
> @Provides
> public class FlowAdminImpl implements FlowAdmin {
>
> @Override
> public void sayHello() {
> System.out.println("I say hello");
> }
>
> }
>
>
> After I created and installed the bundle into Felix I check with the iPOJO
> gogo "instances" command and I see this:
> ...
> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
> 18|Active | 1|FlowBeans Core (1.0.0.SNAPSHOT)
> g! instances
> Instance org.apache.felix.ipojo.IPOJOURLHandler-0 -> valid
> Instance org.apache.felix.ipojo.arch.gogo.Arch-0 -> valid
>
>
> but no com.ce.flowbeans.core.FlowAdminImpl.
>
> Am I forgetting anything?
>
> Thanks!
>
> Michiel
>
>
> -----------------
> http://www.codessentials.com - Your essential software, for free!
> Follow us at http://twitter.com/#!/Codessentials
Re: [iPOJO] @Provides class not detected
Posted by lessonz <le...@gmail.com>.
Perhaps you aren't instantiating it by way of metadata or the @Instantiate
annotation?
On Apr 24, 2013 10:44 PM, "Michiel Vermandel" <mv...@yahoo.com> wrote:
> Hi,
>
> I'm new to iPOJO, so I hope I did not overlook the obvious.
> I created a simple bundle with one class that has the @Component an
> @Provides annotation, but it does not show up in iPOJO gogo arch .
>
> I installed iPOJO in Felix:
> START LEVEL 1
> ID|State |Level|Name
> 0|Active | 0|System Bundle (4.0.3)
> 1|Active | 1|Apache Felix Bundle Repository (1.6.6)
> 2|Active | 1|Apache Felix Configuration Admin Service (1.6.0)
> ...
> 10|Active | 1|Apache Felix iPOJO Annotations (1.8.6)
> 11|Active | 1|Apache Felix iPOJO (1.8.6)
> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
>
>
> My class:
>
> package com.ce.flowbeans.core;
>
> import org.apache.felix.ipojo.annotations.Component;
> import org.apache.felix.ipojo.annotations.Provides;
>
> import com.ce.flowbeans.model.FlowAdmin;
>
> @Component
> @Provides
> public class FlowAdminImpl implements FlowAdmin {
>
> @Override
> public void sayHello() {
> System.out.println("I say hello");
> }
>
> }
>
>
> After I created and installed the bundle into Felix I check with the iPOJO
> gogo "instances" command and I see this:
> ...
> 16|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1)
> 18|Active | 1|FlowBeans Core (1.0.0.SNAPSHOT)
> g! instances
> Instance org.apache.felix.ipojo.IPOJOURLHandler-0 -> valid
> Instance org.apache.felix.ipojo.arch.gogo.Arch-0 -> valid
>
>
> but no com.ce.flowbeans.core.FlowAdminImpl.
>
> Am I forgetting anything?
>
> Thanks!
>
> Michiel
>
>
> -----------------
> http://www.codessentials.com - Your essential software, for free!
> Follow us at http://twitter.com/#!/Codessentials