You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Pierre De Rop (JIRA)" <ji...@apache.org> on 2015/03/19 07:02:38 UTC

[jira] [Closed] (FELIX-4158) ComponentDeclaration should give access to component information

     [ https://issues.apache.org/jira/browse/FELIX-4158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre De Rop closed FELIX-4158.
--------------------------------

> ComponentDeclaration should give access to component information
> ----------------------------------------------------------------
>
>                 Key: FELIX-4158
>                 URL: https://issues.apache.org/jira/browse/FELIX-4158
>             Project: Felix
>          Issue Type: Improvement
>          Components: Dependency Manager
>            Reporter: Arjun Panday
>            Priority: Minor
>             Fix For: org.apache.felix.dependencymanager-r1
>
>
> DependencyManager has a ComponentDeclaration and ComponentDependencyDeclaration interface to get information about the components it manages, but these interfaces don't have a explicit access to the implementation class, the exposed interfaces or the dependency filter.
> For now, one can only parse Component.toString to find the services and implementation (assuming the implementation doesn't override its toString method), and parse ComponentDependencyDeclaration.getName to find the requested service and filter. This kind of parsing is naturally very unsafe and dependent on the implementation details.
> I suggest to add the following methods:
> ComponentDeclaration.getImplementation should return the implementation class name
> ComponentDeclaration.getServices should return a list of interfaces declared by the component
> ComponentDependencyDeclaration.getService should return the requested service name (interface)
> ComponentDependencyDeclaration.getFilter should return the associated filter
> Although minor, these changes would be very useful. (My immediate need is for the improvement of the service diagnostics webconsole plugin)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)