You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2011/02/23 11:26:38 UTC

[jira] Commented: (STANBOL-103) Make OSGi properties display human readable name in the Felix system console

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

Bertrand Delacretaz commented on STANBOL-103:
---------------------------------------------

This is done via OSGi metatype, see for example http://svn.apache.org/repos/asf/sling/trunk/bundles/engine :

src/main/java/org/apache/sling/engine/impl/SlingMainServlet.java has
@Component(immediate = true, metatype = true...

and ./src/main/resources/OSGI-INF/metatype/metatype.properties defines the user-friendly names.



> Make OSGi properties display human readable name in the Felix system console
> ----------------------------------------------------------------------------
>
>                 Key: STANBOL-103
>                 URL: https://issues.apache.org/jira/browse/STANBOL-103
>             Project: Stanbol
>          Issue Type: Bug
>            Reporter: Olivier Grisel
>            Priority: Minor
>
> Most stanbol components use the @Property annotation to declare configurable fields. E.g.:
>     @Property
>     public static final String MODELS_PATH = "org.apache.stanbol.enhancer.engines.opennlp.models.path";
> However the qualified names such as the above are very user-unfriendly. What is the recommended way to have both friendly user facing labels while keeping qualified names as property ids?

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira