Stanbol
  1. Stanbol
  2. STANBOL-103

Make OSGi properties display human readable name in the Felix system console

    Details

      Description

      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?

        Activity

        Hide
        Fabian Christ added a comment -

        All components should now have readable names.

        Show
        Fabian Christ added a comment - All components should now have readable names.
        Hide
        Olivier Grisel added a comment -

        I meant "adding the metatype.properties".

        Show
        Olivier Grisel added a comment - I meant "adding the metatype.properties".
        Hide
        Rupert Westenthaler added a comment -

        Do you mean "adding the metatype.properties" or "changing the naming conversions"?

        Show
        Rupert Westenthaler added a comment - Do you mean "adding the metatype.properties" or "changing the naming conversions"?
        Hide
        Olivier Grisel added a comment -

        Ok thanks for the info. I have updated the NamedEntityExtractionEnhancementEngine component to use the same naming conventions as sling (a bit shorter that the fully qualified names) in svn revision 1073812.

        All the the other Stanbol components need an update. When working on this please add comment to this issue to track the progress.

        Show
        Olivier Grisel added a comment - Ok thanks for the info. I have updated the NamedEntityExtractionEnhancementEngine component to use the same naming conventions as sling (a bit shorter that the fully qualified names) in svn revision 1073812. All the the other Stanbol components need an update. When working on this please add comment to this issue to track the progress.
        Hide
        Bertrand Delacretaz added a comment -

        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.

        Show
        Bertrand Delacretaz added a comment - 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.

          People

          • Assignee:
            Unassigned
            Reporter:
            Olivier Grisel
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development