clement escoffier wrote
> 
> Hi,
> 
> It depends what you want to do with the instance.
> 

For now I just want to know its status.


clement escoffier wrote
> 
> If 'reading' metadata is enough, then use the Architecture service and the
> 'architecture.instance' service property.
> 

I think I am doing that (or something like that). I have created a service
requirement for the Architecture interface (in the array form) and iPOJO
binds there every instance that has a valid architecture handler. Then I
iterate over it checking each InstanceDescription to find the desired
instance. Finally I get the instance state. But I think this process is not
efficient because I have to iterate through all instances and so on... I
thought I could call some getInstanceByName() or something like that.


clement escoffier wrote
> 
> 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.
> 

I will have a look and try to help.

Thanks,
Fabio



--
View this message in context: 
http://apache-felix.18485.n6.nabble.com/How-to-get-the-ComponentInstance-from-the-instance-name-attribute-tp4997990p4998005.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]

Reply via email to