You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Sauthier (JIRA)" <ji...@apache.org> on 2012/06/05 15:27:23 UTC

[jira] [Commented] (FELIX-3537) Make ComponentInstance more easily accessible

    [ https://issues.apache.org/jira/browse/FELIX-3537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13289398#comment-13289398 ] 

Guillaume Sauthier commented on FELIX-3537:
-------------------------------------------

Maybe the Factory interface should offer that kind of API:

Factory.getComponentInstances() : Collection<ComponentInstance>

Or something more flexible with filtering capabilities:

Factory.getComponentInstances(InstanceFilter) : Collection<ComponentInstance>
and
InstanceFilter.filter(ComponentInstance):boolean

As instances are also dynamic objects, maybe a notification system could be envisionned (not sure if this is a real requirement) ?
                
> Make ComponentInstance more easily accessible
> ---------------------------------------------
>
>                 Key: FELIX-3537
>                 URL: https://issues.apache.org/jira/browse/FELIX-3537
>             Project: Felix
>          Issue Type: New Feature
>          Components: iPOJO
>            Reporter: Guillaume Sauthier
>
> Currently, ComponentInstance works great with iPOJO's Factory:
> With the Factory, you can create a new ComponentInstance, and using the ComponentInstance returned, you have some control over the instance (start/stop/dispose/reconfigure).
> This is very nice, but the limitation is that the ComponentInstance is only known within your "session" with the Factory, you cannot access it outside.
> That means, for example, that an instance created from the metadata.xml will never be startable, stoppable or reconfigurable.
> So I would like to have a way to obtain ComponentInstance(s) from the iPOJO API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira