Re: [osgi-dev] How to mock annotation based configs with defaults

2018-04-27 Thread João Assunção via osgi-dev
I'm using a custom version of Peter Kriens aQute.configurable.Configurable. Initially, I was using it only for unit testing but now when I need to run DS components in a plain java application (non OSGi). Regards, João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone:

Re: [osgi-dev] OSGI application deployment targets

2018-01-19 Thread João Assunção via osgi-dev
Hello Kevin, At one of my clients we are running Apache Karaf in docker containers and we are happy with the result. We have a base docker image with Java and a custom distro of Apache Karaf. >From this base image we create specializations for different environments. Jenkins is used, but due to

Re: [osgi-dev] Angular New Enroute

2018-08-06 Thread João Assunção via osgi-dev
As David mentioned you will need to include the "ng build" step in your build process. I include a portion of the pom where exec-maven-plugin is used to invoke "npm install" and "ng build". To expose the angular app we are using HTTP whiteboard. The bundle activator exports a ResourceMapping

[osgi-dev] How would you implement SLF4J binding ?

2018-07-12 Thread João Assunção via osgi-dev
Hello all, I'm currently trying to implement a facade for a metrics library and one of the objectives is to make its usage agnostic of the runtime environment. At my place, we have some components that are mainly used in the context of an OSGi container but can also be used in plain Java

Re: [osgi-dev] How would you implement SLF4J binding ?

2018-07-12 Thread João Assunção via osgi-dev
t; OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788 > hargr...@us.ibm.com > > > > ----- Original message - > From: "João Assunção via osgi-dev " > Sent by: osgi-dev-boun...@mail.osgi.org > To: OSGi Developer Mail List > Cc: > Subject: [o

Re: [osgi-dev] Service component resolution time

2018-10-22 Thread João Assunção via osgi-dev
Hi Alain, I experienced some startup slow down but it was a result of folks doing too much stuff in the activator. A major culprit in our side was people doing I/O heavy operations in the thread that invokes the activator. That would delay the activation of the following components. João

Re: [osgi-dev] Is it possible to use an interface type as the config argument of an activate method ?

2018-11-07 Thread João Assunção via osgi-dev
> >> But you can pass in more arguments into the activate method, > >> so instead > >> of having a base interface C and lets say two configuration > >> interface C1 > >> and C2 inheriting from C, y

Re: [osgi-dev] Is it possible to use an interface type as the config argument of an activate method ?

2018-11-07 Thread João Assunção via osgi-dev
d C1 for one > component and C and C2 for the other component. > > Regards > Carsten > > Am 07.11.2018 um 11:53 schrieb João Assunção via osgi-dev: > > Hello all, > > > > I have two components where the configuration shares a couple of > > attribut

[osgi-dev] Is it possible to use an interface type as the config argument of an activate method ?

2018-11-07 Thread João Assunção via osgi-dev
Hello all, I have two components where the configuration shares a couple of attributes. To avoid duplication, and because Java doesn't allow annotations to be extended, I changed the configuration annotations to interfaces. When building, bnd-maven-plugin fails with the following error message:

Re: [osgi-dev] Is it possible to use an interface type as the config argument of an activate method ?

2018-11-07 Thread João Assunção via osgi-dev
g coupled to > the meta type API just because it uses the annotations. > > Best Regards, > > Tim > > On 7 Nov 2018, at 11:10, João Assunção via osgi-dev < > osgi-dev@mail.osgi.org> wrote: > > Hi Carsten, > > Thank you for the clarification and the tip. > I