Re: [iPOJO] Usage of @Requires in superclass

2013-05-01 Thread lessonz
aspect of the build environment. Neil On Tue, Apr 30, 2013 at 7:42 PM, lessonz lessonz.leg...@gmail.com wrote: My understanding is it has nothing to do with iPOJO and everything to do with how Java handles annotations. On Apr 30, 2013 12:34 PM, Michiel Vermandel mverm...@yahoo.com wrote

Re: [iPOJO] Usage of @Requires in superclass

2013-04-30 Thread lessonz
It's been my experience this does not work. On Tue, Apr 30, 2013 at 6:12 AM, Michiel Vermandel mverm...@yahoo.comwrote: Hello, Can I use @Requires on a field of a (Abstract) class that will be extended? Of course only the extending classes will be instantiated. Thank you

Re: [iPOJO] Usage of @Requires in superclass

2013-04-30 Thread lessonz
for this... - http://www.codessentials.com - Your essential software, for free! Follow us at http://twitter.com/#!/Codessentials From: lessonz lessonz.leg...@gmail.com To: users@felix.apache.org; Michiel Vermandel mverm...@yahoo.com Sent: Tuesday, April 30

[iPOJO] ServiceController

2013-04-24 Thread lessonz
I'm trying to use the @ServiceController annotation to handle registering a service. In this case I need to use it because I have a field the service really should have an @Requires relationship with, but I cannot use that annotation because I also need to provide a setter. So, that setter uses

Re: [iPOJO] ServiceController

2013-04-24 Thread lessonz
I should also add if I use: @ServiceController private boolean valid; it appears to work. On Wed, Apr 24, 2013 at 10:52 AM, lessonz lessonz.leg...@gmail.com wrote: I'm trying to use the @ServiceController annotation to handle registering a service. In this case I need to use

Re: [iPOJO] ServiceController

2013-04-24 Thread lessonz
Just realized ServiceController has a default value of true. So, that's why it appears to be working. So, it seems my @Bind is never being called. On Wed, Apr 24, 2013 at 11:08 AM, lessonz lessonz.leg...@gmail.com wrote: I should also add if I use: @ServiceController private boolean

Re: [iPOJO] ServiceController

2013-04-24 Thread lessonz
For anyone who may find this, the problem, as indicated in my last message, was the @Bind annotated method was not being called. This was due to the method being named setX rather than bindX AND Bind's id attribute not being set. Hope that helps someone. On Wed, Apr 24, 2013 at 2:38 PM, lessonz

Re: [iPOJO] @Provides class not detected

2013-04-24 Thread lessonz
Perhaps you aren't instantiating it by way of metadata or the @Instantiate annotation? On Apr 24, 2013 10:44 PM, Michiel Vermandel mverm...@yahoo.com wrote: Hi, I'm new to iPOJO, so I hope I did not overlook the obvious. I created a simple bundle with one class that has the @Component an

BouncyCastle and embedded Felix

2013-04-02 Thread lessonz
I am posting to this list as I believe my issue is either related to OSGi in general or to embedding Felix specifically not to any shortcoming on the part of BouncyCastle. I have a super-jar in which I embed the Felix framework as well as a number of bundles. At runtime this bundles are loaded as

IPOJO @Requires Setters

2013-03-22 Thread lessonz
I have a field for which I'd like to use the @Requires annotation with a filter. That works just fine, but in a test environment I'd like to be able to use a setter to replace the service represented by this field at runtime. That is, the @Requires has been fulfilled, and I want to replace it by

Re: PAX Logging configuration

2013-02-28 Thread lessonz
Thanks Felix. On Thu, Feb 28, 2013 at 1:02 PM, Felix Meschberger fmesc...@adobe.comwrote: Hi I fear you would have to contact the PAX people general (at) ops4j (dot) org. Regards Felix Am 28.02.2013 um 20:56 schrieb lessonz: I have an app wherein I'm deploying the Felix framework

Re: IPOJO Interface Issues

2012-10-22 Thread lessonz
. 2012, at 01:36, lessonz lessonz.leg...@gmail.com wrote: Okay, so I realized I'd been ignoring an error. There is an error I'd be unintentionally ignoring: [Thread-1] ERROR com.sample.bundle - [ERROR] com.sample.SampleServiceImpl : Service Providing: The service specification

Re: IPOJO Interface Issues

2012-10-19 Thread lessonz
the error even if I have SampleServiceImpl import ICoreService directly. If I make ISampleService NOT extend ICoreService, the error goes away (makes sense) and SampleServiceImpl gets instantiated no problem. Any ideas would be greatly appreciated. Thanks On Oct 18, 2012 7:14 PM, lessonz lessonz.leg

IPOJO Interface Issues

2012-10-18 Thread lessonz
I’m using IPOJO. Okay, I’ve got one that has me stumped. I have a component with some member components: @Component @Instantiate @Provides public class SampleServiceImpl implements ISampleService { @Requires private ITestAService testAService;

Injecting Dependency Into Embedded Apache Felix Instance

2012-10-11 Thread lessonz
I have a standalone application in which I've embedded Felix basically following the process outlined here: https://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html This application is a super or uber jar that embeds all of the necessary bundles: plugins

Re: Problem with 3rd Party Bundle

2012-10-05 Thread lessonz
Tried using that, but that didn't work; it looks like it exports net.json. But one of my buddies found: dependency groupIdorg.json/groupId artifactIdcom.springsource.org.json/artifactId version1.0.0/version /dependency And that appears to have

Re: Pax Logging and Dependency Issues

2012-08-15 Thread lessonz
um 18:35 schrieb lessonz: Okay, so I'm probably missing something elementary, but I tried replacing dependency groupIdorg.apache.felix/groupId artifactIdorg.osgi.compendium/artifactId version1.4.0/version /dependency

Pax Logging and Dependency Issues

2012-08-13 Thread lessonz
So, I'm trying to use Pax Logging in a bundle: dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.17/version /dependency dependency groupIdorg.ops4j.pax.logging/groupId

Embedded Felix

2012-08-08 Thread lessonz
Okay, I'm probably missing something rudimentary, but I'm at a bit of a loss. I have an application embedding Felix: plugin groupIdorg.apache.felix/groupId artifactIdmaven-bundle-plugin/artifactId extensionstrue/extensions

Re: Problem felix with jar file

2012-07-02 Thread lessonz
This MIGHT help: https://thecarlhall.wordpress.com/2012/01/19/understanding-the-unresolved-constraint-missing-resource-message-from-apache-felix/ On Mon, Jul 2, 2012 at 12:22 PM, maria Din mariadin...@gmail.com wrote: Hello, I use felix. I need in my project (bundle) a class that exists in a