|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
iPOJO annotations only ?Hi *,
I'm currently getting in touch with iPOJO and try to use the annotation approach. I'm using the maven bundle plugin + the maven ipojo plugin. I just figured out, that my components were not recognized because of a missing metadata.xml. I created such a file, which only contains an instance declaration. <iPOJO> <instance component="de.berlios.vch.parser.brainblog.BrainblogParser" name="BrainblogParser" /> </iPOJO> Now the component is found by iPOJO. My question is, if I have to provide an metadata.xml, or if can declare an instance with annotations, too. Regards Henrik --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: iPOJO annotations only ?Henrik Niehaus schrieb:
> Hi *, > > I'm currently getting in touch with iPOJO and try to use the annotation > approach. I'm using the maven bundle plugin + the maven ipojo plugin. I > just figured out, that my components were not recognized because of a > missing metadata.xml. > I created such a file, which only contains an instance declaration. > > <iPOJO> > <instance component="de.berlios.vch.parser.brainblog.BrainblogParser" > name="BrainblogParser" /> > </iPOJO> > > Now the component is found by iPOJO. My question is, if I have to > provide an metadata.xml, or if can declare an instance with annotations, > too. > > Regards > Henrik > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > Never mind! I found a section in the docs, which answers my question: http://felix.apache.org/site/how-to-use-ipojo-annotations.html#HowtouseiPOJOAnnotations-Instancecreation --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: iPOJO annotations only ?On 10.10.2009, at 16:14, Henrik Niehaus wrote: > Henrik Niehaus schrieb: >> Hi *, >> >> I'm currently getting in touch with iPOJO and try to use the >> annotation >> approach. I'm using the maven bundle plugin + the maven ipojo >> plugin. I >> just figured out, that my components were not recognized because of a >> missing metadata.xml. >> I created such a file, which only contains an instance declaration. >> >> <iPOJO> >> <instance >> component="de.berlios.vch.parser.brainblog.BrainblogParser" >> name="BrainblogParser" /> >> </iPOJO> >> >> Now the component is found by iPOJO. My question is, if I have to >> provide an metadata.xml, or if can declare an instance with >> annotations, >> too. >> >> Regards >> Henrik >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> > > Never mind! I found a section in the docs, which answers my question: > http://felix.apache.org/site/how-to-use-ipojo-annotations.html#HowtouseiPOJOAnnotations-Instancecreation Hi, Well you find the answer. Right now, there is no way to declare instance with annotations as it targets two different levels (component type / instance). Regards, Clement > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |