Hi,

It depends what you want to do with the instance. If 'reading' metadata is 
enough, then use the Architecture service and the 'architecture.instance' 
service property. If you really need to access the Component Instance, it's 
more complex. We're trying to improve this in 
https://issues.apache.org/jira/browse/FELIX-3537. Feel free to comment the 
issue if you have ideas.

Regards,

Clement

On 12.06.2012, at 19:15, fabiolf wrote:

> Hello!
> 
> What is the best way to obtain a ComponentInstance from its instance.name
> attribute? Do I have to get all the factories and then, its instances and
> then find the one who has the right? instance.name? This seems to have a
> high cost. Do anyone has a better and more direct way?
> 
> Thanks!
> Fabio
> 
> --
> View this message in context: 
> http://apache-felix.18485.n6.nabble.com/How-to-get-the-ComponentInstance-from-the-instance-name-attribute-tp4997990.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to