It seems that DependencyActivatorBase is not part of our felix container: System Bundleorg.apache.felix.framework <http://localhost:4502/system/console/bundles/0> 4.3.0.R1558704
Is that something that should be available? On 14/08/2014 12:06, "Jan Willem Janssen" <[email protected]> wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >On 14/08/14 12:58, Konstantine Kougios wrote: >> Hi, thanks for the reply, I do use the @Service annotations: >> >> @Component(immediate = true, metatype = true) @Service(value = { >> CurrencyService.class, EventHandler.class }) >> >> So should I monitor for bundle activations? >> >> Isn¹t there a way, say in my pom.xml to say that A must be started >> before B or a more natural way of saying that A startup is >> mandatory for B? >> > >fat fingers, sorry... > >class Activator extends DependencyActivatorBase { > public void init(BundleContext context, DependencyManager manager){ > manager.add(createComponent() > .setInterface(ServiceA.class.getName()) > .setImplementation(ServiceAImpl.class) > .add(createServiceDependency() > .setService(ServiceC.class) > .setRequired(true))); > } > //... >} > >This describes your ServiceA as having a required dependency on >ServiceC, which means that ServiceA is *only* started when it has a >reference to ServiceC, and is stopped when ServiceC goes away. > >In DS there are similar constructs which you can use, perhaps another >user can give you an example... > >- -- >Met vriendelijke groeten | Kind regards > >Jan Willem Janssen | Software Architect >+31 631 765 814 > >/My world is revolving around INAETICS and Amdatu/ > >Luminis Technologies B.V. >Churchillplein 1 >7314 BZ Apeldoorn >+31 88 586 46 00 > >http://www.luminis-technologies.com >http://www.luminis.eu > >KvK (CoC) 09 16 28 93 >BTW (VAT) NL8169.78.566.B.01 >-----BEGIN PGP SIGNATURE----- >Version: GnuPG/MacGPG2 v2.0.17 (Darwin) >Comment: GPGTools - http://gpgtools.org > >iQIcBAEBAgAGBQJT7JhAAAoJEKF/mP2eHDc4l9gP/iKYxOFVO3fIOnu2axcxj+OS >GEvV++1iWeGduYQGcu/RoLXYG2+lhc3kJfjGFdqgrL4kwVxtWegfNEIEXRPMGECI >8UOyh36QNOTGDUJtQgGLAhtC6lzuUA7VKX8jXopEmjhLsPL8NRx8HDdscrS3iDTU >2C0x/mgJPH1sex3JubWU8iwojYp5bJy9mfhavwMUhphHuF5mhSbCpMovmTjOtCPi >Kg+cHQHUc7wRR3+TDxUG1GFFD0fU1ddtNqwJVa4jp+jVFoqhUHi+YZwrFfXuuD7A >bDxL1ooZYXp8jA/+lNP3ezZEttVnx+/y9Yh1Xkr2YUxaXE+EgnDpltdb5B2Hm+xs >xeD0/HMy0db79NsrlM5pOSZgJowL8B/paR/CIMBS/KE63NUKVRhIUIc1JBgbPtXf >wr+/mhXyNGEr5ajSe2zleynlC35SakDzlLlqhnxG5nQFcZtvfOvhfsKYzjTz1E5Z >h18hxk6phDAHhqMBXzrSUpTAN8vnup50jh8e/1j38NdDvBT8feIsBLQonu320uIj >jAb95/A6ZYPdk+Vg58xs710++vGanY5JNI8hjnvwRB5vYJprQ2Umw74tHsSYb/WL >+YdUFTzzOMqLsfoIUjJOZM16Cps9fJt9VluPviglB8BIX1t3plbf6PAEmhxF0eiB >TyOJMDxz6b5+Qm2nJd6p >=ddmB >-----END PGP SIGNATURE----- > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [email protected] >For additional commands, e-mail: [email protected] >

