Re: OSGi (Blueprint) fragment and host bundle notification

2011-09-07 Thread Matt Madhavan
t(BundleWiring.class); >> > >> > Collection fragmentWires = wiring. >> > getProvidedWires(BundleRevision.HOST_NAMESPACE); >> > >> > for(BundleWire wire : fragmentWires) { >> > Bundle fragment = wire.getRequirerWiring().getBundle(); >> &g

Re: OSGi (Blueprint) fragment and host bundle notification

2011-09-07 Thread Mark Nuttall
.getRequirerWiring().getBundle(); > > //Do some stuff with this fragment > > } > > } > > > > This will allow you to find out which fragments were wired to your bundle > when it resolved. > > > > Regards, > > > > Tim > > > > From: mnut

RE: OSGi (Blueprint) fragment and host bundle notification

2011-09-07 Thread Matt Madhavan
rds, > > Tim > > From: mnutt...@apache.org > Date: Wed, 7 Sep 2011 08:54:57 +0100 > Subject: Re: OSGi (Blueprint) fragment and host bundle notification > To: user@aries.apache.org > > Hi Matt, A web search for "osgi bundle tracker fragment" yields this articl

RE: OSGi (Blueprint) fragment and host bundle notification

2011-09-07 Thread Timothy Ward
ndle when it resolved. Regards, Tim From: mnutt...@apache.org Date: Wed, 7 Sep 2011 08:54:57 +0100 Subject: Re: OSGi (Blueprint) fragment and host bundle notification To: user@aries.apache.org Hi Matt, A web search for "osgi bundle tracker fragment" yields this article: http://java.dz

Re: OSGi (Blueprint) fragment and host bundle notification

2011-09-07 Thread Mark Nuttall
Hi Matt, A web search for "osgi bundle tracker fragment" yields this article: http://java.dzone.com/articles/osgi-junit-test-extender-using. This uses a BundleTrackerCustomizer, bundleTracker = new BundleTracker(context, Bundle.RESOLVED, testExtender); bundleTracker.open(); Which then tests to se

OSGi (Blueprint) fragment and host bundle notification

2011-09-06 Thread Matt Madhavan
Hello, I would like to know when a new BluePrint fragment attaches it self to a host bundle will the host bundle be notified? I would like to do some work inside of the host bundle anytime a fragment attaches itself to a host. Any ideas? Thanks in advance! Matt Madhavan