You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Arjun Panday (JIRA)" <ji...@apache.org> on 2013/07/02 18:03:20 UTC
[jira] [Created] (FELIX-4158) ComponentDeclaration should give
access to component information
Arjun Panday created FELIX-4158:
-----------------------------------
Summary: 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
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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira