[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Passing state from a bundle to its components

Sure. You could also use an immediate component as an alternative to a bundle activator. The state can be set in a static filed(s) of the activator or immediate component class.

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
hargrave@xxxxxxxxxx
Office: +1 407 849 9117 Mobile: +1 386 848 3788


  ----- Original Message -----
  From: equinox-dev-bounces
  Sent: 05/16/2006 10:19 AM
  To: <equinox-dev@xxxxxxxxxxx>
  Subject: [equinox-dev] Passing state from a bundle to its components


I have an activator start method that initializes some state for the bundle.  This bundle also contains 2 distinct components, each with their own xml descriptor and activate/deactivate methods.  The activators of these components must access the state initialized within the bundle activator start method.  Is this possible?  Is it reasonable to use components to define substructure within a bundle?
 
Thanks in advance,
Cameron Ross.
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev