Thank you all.
Special thanks to Carsten - that was exactly I was searching for.
My reference looks now like this:
@Reference(policyOption = ReferencePolicyOption.GREEDY, collectionType =
CollectionType.TUPLE)
private volatile List, ISecurityChecker>>
_securityCheckers;
As you said, I
On 06/08/2018 11:10, Philipp Höfler wrote:
I am receiving a rest call with a system id. Based on this id I would like to
use the appropriated config from the json file.
For example, security check is disabled for system1, but not for system2. The
rest endpoint is the same but based on the
On 06/08/2018 11:10, Philipp Höfler wrote:
Sorry, pid is probably the wrong word for that. Alias might be more correct.
I am talking about the name after the ~ in the configuration file
(my.config~system1).
In this case I would like to get "system1".
Ah, now I understood.
I think you won't
etreff: Re: AW: Configurator R7 example
Hi,
If you do not have a "consumer" component active for the service
ISecurityChecker you won't have an instance of it created because the default
is to delay the activation until someone request it.
In order to test, you can use the immediate pro
Von: Philipp Höfler
Gesendet: Montag, 6. August 2018 13:34
An: users@felix.apache.org
Betreff: AW: Configurator R7 example
Thanks for your quick reply.
Unfortunately, when setting the policy to required, the whole component won't
be loaded.
At least, when attaching a debugger, the activate method is nev
eas, how I can get the pid of the configuration?
Best,
Philipp
-Ursprüngliche Nachricht-
Von: Philipp Höfler
Gesendet: Montag, 6. August 2018 13:34
An: users@felix.apache.org
Betreff: AW: Configurator R7 example
Thanks for your quick reply.
Unfortunately, when setting the policy to required
onfig
> Configuration Binding ?
>
> test.name System2
> test.securityEnabled true
> Configuration Information
> Persistent Identity (PID) my.config~system2
> Factory Persist
iguration Information
Persistent Identity (PID) my.config~system2
Factory Persistent Identifier (Factory PID) my.config
Configuration Binding ?
Any help is appreciated.
Thanks,
Philipp
-----Ursprüngliche Nachricht-----
Von: Philipp Höfler
Gesendet:
May I ask you again for help.
I am still stuck at the multi-tenant implementation.
As described in my last mail, I have slightly modified your suggestion.
I was busy the last couple of days. For some reason, when I try to build the
project including a reference to the Map> I am getting the
Thanks for the detailed explanation. I can now better understand your approach.
Still, there are a few things unclear to me:
* From my point of view, I would like to avoid doing the security check within
the IRepositoryImpl class.
The security mechanism is related to the rest interface and not
Hallo Ray,
I am sorry, I do not understand your pseudo code example.
I've modified my test project to show you my current structure.
From my point of view, I would need something like a "Router" to route the
Requests to the right instance of the controller. According to my current
Hallo Ray,
thanks for your detailed explanation. You're right, I think one can consider
this scenario as multi-tenant.
This sounds pretty promising.
The following points are unclear to me:
* Even if I decouple the configuration from the endpoint, the security check
has to be done in the
I've tested the factory configuration and I am afraid that my problem is not
being solved with this approach.
I think I might have to explain the problem in more detail, that you'll get a
better understanding.
I am implementing a REST service using the HTTP Whiteboard mechanism. This
interface
Thanks for your very detailed explanation.
If I got you right, with ManagedProperties I am not bound to the primitives the
default osgi implementation provides, but I can use any Java type.
Up to now, I think I am fine with factory configuration, but probably I come
back to you in a few weeks,
I didn't get the point of factory configurations until I read your explanation
- thanks.
I think this is exactly what I was looking for. I'll try it tomorrow ...
-Ursprüngliche Nachricht-
Von: Raymond Auge
Gesendet: Donnerstag, 12. Juli 2018 18:23
An: felix users
Betreff: Re:
Right, this is missing.
I added the @RquireConfigurator annotation to the GoGo Command class. Is that a
suitable place for it?
The json is now being loaded. The value is set to false.
Could you please explain, how this is working?
It's not completely clear to me, why the @interface MyConfig is
Hallo David,
thanks for the explanation.
So, the configurator is just a "wrapper" for the ConfigAdminService to read
json and transfer it into a key value format, right?
I still have problems to use the
I put a test.json file in the OSGI-INF/configurator folder of a bundle with the
following
17 matches
Mail list logo