You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Georg Henzler (JIRA)" <ji...@apache.org> on 2019/01/03 15:51:00 UTC

[jira] [Commented] (FELIX-6004) Create a health check annotation based on OSGi R7 component property types

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

Georg Henzler commented on FELIX-6004:
--------------------------------------

Committed initial version in [r1850243|http://svn.apache.org/r1850243]: There is @HealthCheckService (to set basic properties hc.name and hc.tags) and e.g. @Async to configure HC for asynchronous execution. Many specialised annotations are used to not produce the service properties if they are not needed (e.g. if resultCacheTtlInMs was included in the base annotation @HealthCheckService, that property would always be set at runtime to OSGi service, even if the source code does not set it leaving it the annotation default). The approach using many annotations is in line with standard annotations @ServiceRanking and @ServiceDescription.

> Create a health check annotation based on OSGi R7 component property types
> --------------------------------------------------------------------------
>
>                 Key: FELIX-6004
>                 URL: https://issues.apache.org/jira/browse/FELIX-6004
>             Project: Felix
>          Issue Type: New Feature
>          Components: Health Checks
>            Reporter: Georg Henzler
>            Assignee: Georg Henzler
>            Priority: Major
>
> In the same way as it was possible for Sling HCs [1] (based on felix SCR plugin), there should be annotations to set health check specific SCR properties in a type-safe manner. This is supported since OSGi R7 via component property types [2] and is already used by the http whiteboard [3].
> [1] https://sling.apache.org/documentation/bundles/sling-health-check-tool.html#slinghealthcheck-annotation
> [2] https://blog.osgi.org/2018/03/osgi-r7-highlights-declarative-services.html
> [3] https://blog.osgi.org/2018/05/osgi-r7-highlights-http-whiteboard.html



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)