You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Fairouz Fakhfakh <fa...@gmail.com> on 2012/03/16 02:03:03 UTC
help: create component instance dynamically with IPOJO
Hello,
I would like to createdynamically.
I tried to follow this link:
http://felix.apache.org/site/how-to-use-ipojo-factories.html
but I have problems such: "ComponentInstance cannot be resolved to a type"
and "The method put(String, String) is undefined for the type Properties"
So, it is possible to give me an example of java class or bundle creating
component instance dynamically with IPOJO?
Thank for answaring me.
Best regards,
--
Fairouz Fakhfakh
Master Student
National School of Engineers of SFAX
Research group ReDCAD
http://WWW.redcad.org <http://www.redcad.org/>
Re: help: create component instance dynamically with IPOJO
Posted by Reuben Garrett <re...@gmail.com>.
Fairouz,
I'd like to move this discussion to the users mailing list since you have
usage concerns.
I'm not exactly an expert, but I have successfully deployed iPOJO
components in an OSGi environment without those errors. I'm not sure if
you're using java annotations or XML, but I prefer annotations.
"Cannot be resolved to a type" sounds like a compile-time error. How are
you building your project? With Apache Maven? I wonder if you've defined
the necessary dependencies.
Would you please post more details, such as your source code and project
setup (pom.xml if using Maven)?
Don't give up! iPOJO has some powerful capabilities worthy of an OSGi
developer's time :)
~ Reuben
On Thursday, March 15, 2012, Fairouz Fakhfakh <fa...@gmail.com>
wrote:
> Hello,
> I would like to createdynamically.
> I tried to follow this link:
> http://felix.apache.org/site/how-to-use-ipojo-factories.html
> but I have problems such: "ComponentInstance cannot be resolved to a type"
> and "The method put(String, String) is undefined for the type Properties"
> So, it is possible to give me an example of java class or bundle creating
> component instance dynamically with IPOJO?
Re: help: create component instance dynamically with IPOJO
Posted by Reuben Garrett <re...@gmail.com>.
Fairouz,
I'd like to move this discussion to the users mailing list since you have
usage concerns.
I'm not exactly an expert, but I have successfully deployed iPOJO
components in an OSGi environment without those errors. I'm not sure if
you're using java annotations or XML, but I prefer annotations.
"Cannot be resolved to a type" sounds like a compile-time error. How are
you building your project? With Apache Maven? I wonder if you've defined
the necessary dependencies.
Would you please post more details, such as your source code and project
setup (pom.xml if using Maven)?
Don't give up! iPOJO has some powerful capabilities worthy of an OSGi
developer's time :)
~ Reuben
On Thursday, March 15, 2012, Fairouz Fakhfakh <fa...@gmail.com>
wrote:
> Hello,
> I would like to createdynamically.
> I tried to follow this link:
> http://felix.apache.org/site/how-to-use-ipojo-factories.html
> but I have problems such: "ComponentInstance cannot be resolved to a type"
> and "The method put(String, String) is undefined for the type Properties"
> So, it is possible to give me an example of java class or bundle creating
> component instance dynamically with IPOJO?