Re: Is it possible to "shade" non-OSGi projects into bundle?

2014-10-08 Thread Henry Saginor
Hi Jens, You can add non-OSGi dependencies as embedded dependencies to your project using maven-bundle-plugin [1] via Embed-Dependency. In this case the embedded dependency will be added to your bundles jar and to Bundle-ClassPath in it’s manifest. This should also avoid other class loader issu

Is it possible to "shade" non-OSGi projects into bundle?

2014-10-08 Thread Rabe, Jens
Hello, I want to create a self-contained OSGi bundle which uses some Spring/JPA features like the auto generated repositories (PagingAndSortingRepository). I configured my pom.xml as a bundle, and it builds correctly. The problem is though, non-Maven dependencies like the Spring stuff cannot ea

Re: IPojo injecting a service/component into manually created objects

2014-10-08 Thread Clement Escoffier
Hi,  The code you gave works and does not introduce drawbacks. Currently, iPOJO does not provide an easier API to retrieve the contained objects. This is because iPOJO component type may not contain ‘objects’ such as composites (they contains other iPOJO instances).  Depending ou your use case

IPojo injecting a service/component into manually created objects

2014-10-08 Thread Milen Dyankov
Hi everyone, I faced a use case where I don't really know what is the best way to solve. So here is oversimplified version of the problem: - I'm using a 3rd party framework (available as OSGI bundle) that does something with objects (what exactly is irrelevant) - The framework is configured with

Re: Dependency Manager: registering FrameworkListener

2014-10-08 Thread Marcel Offermans
From the spec: "A FrameworkListener object is registered with the Framework using the BundleContext.addFrameworkListener method.” So it is not whiteboard-style (it pre-dates the whiteboard pattern afaik). In DM I would do: in the init: dm.add(createComponent().setImplementation(Comp.class)); a

Re: iPojo @Stereotype annotated annotation from separate bundle

2014-10-08 Thread Milen Dyankov
Hi guys, I'm sorry it took me so long but I've been really busy lately. I just wanted to let you know I created a JIRA issue ( https://issues.apache.org/jira/browse/FELIX-4668) and attached a sample projects to it. I'm still not sure if this is a bug or I'm missing something and trying to use it i

Dependency Manager: registering FrameworkListener

2014-10-08 Thread Bulu
Hello all I'm declaring a component using DM which gets created when all dependencies are met. This component should also get notified of framework events and thus implements FrameworkListener. Does the OSGi framework also use a whiteboard pattern for delivering these events, meaning I only