aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos Sierra (JIRA)" <>
Subject [jira] [Commented] (ARIES-1785) Application without JAX_RS_EXTENSION_SELECT fetchs Extension
Date Wed, 21 Feb 2018 11:03:00 GMT


Carlos Sierra commented on ARIES-1785:

Hi Stefan,

If you need your application to wait for the extension and want the extension to register
only to applications that wait for it, you could do something like this (using the notation
you used in your example above):

the application can carry the property:
and the extension can carry the properties:
(note the escaping characters). This way the extension will only attach to applications that
require it and applications requiring it will not be processed until the extension is up.
Your application with no _osgi.jaxrs.extension.select_ property will get no extension. 

However, If you don't need the application to wait for the extension (it is not required for
it to work), I would say your best way to go would be setting a _JAX_RS_APPLICATION_SELECT_
property to your extension.
then, when you want an application to use your extension, you can set a property
to your application. The application that does not carry the property will not get the filter.

I hope one of these scenarios suits you needs. 




> Application without JAX_RS_EXTENSION_SELECT fetchs Extension
> ------------------------------------------------------------
>                 Key: ARIES-1785
>                 URL:
>             Project: Aries
>          Issue Type: Bug
>          Components: jax-rs-whiteboard
>    Affects Versions: jax-rs-whiteboard-1.0.0
>            Reporter: Stefan Bischof
>            Priority: Major
>         Attachments: test.txt
> Hi,
> an application without any JAX_RS_EXTENSION_SELECT property fetchs a extention.
> see the attached test for more information.
> (could be paste into
> regards

This message was sent by Atlassian JIRA

View raw message