Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Reusing BundleActivator


There is no spec restriction on this.

Since all bundles share this class, you should be careful not to use static fields since all bundles will see these.

Each bundle will have a unique activator object, so instance fields are fine.

BJ Hargrave
Senior Software Engineer, IBM Pervasive Computing - Austin, TX
mailto:hargrave@xxxxxxxxxx  902/6C-003 T/L 678-9938
Office: +1 512 838 9938  Mobile: +1 512 785 7386



"Pascal Rapicault" <Pascal_Rapicault@xxxxxxxxxx>
Sent by: equinox-dev-admin@xxxxxxxxxxx

2003-07-16 11:09 AM

       
        To:        equinox-dev@xxxxxxxxxxx
        cc:        
        Subject:        [equinox-dev] Reusing BundleActivator




Hi,


Is there any restriction in the spec for a bundle to use an activator provided by another bundle.

My case is the following:

       Bundle common.activator contains the class common.activator.TheActivator and does not have an activator of its own (it's a library)

       Bundle foo import commom.activator and has an activator which is common.activator.TheActivator


PaScaL


Back to the top