Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [equinox-dev] Standardize Eclipse Lazy Start


A lazy activation bundle *will* get activated before any static initializers are run on class loaded from that bundle.  This is well before a constructor is allowed to run for a Class.  The main difference is we activate the bundle after the "trigger" class has been defined, but before any static initializers are run.  Before we used to activate the bundle before even searching for the "trigger" class.  That approach lead to ClassCircularityErrors and possible deadlock.

Tom



"Walter Harley" <wharley@xxxxxxx>
Sent by: equinox-dev-bounces@xxxxxxxxxxx

11/08/2006 08:07 PM

Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

To
"Equinox development mailing list" <equinox-dev@xxxxxxxxxxx>
cc
Subject
RE: [equinox-dev] Standardize Eclipse Lazy Start





Tom, I understand this changes the relationship between bundle activation and class *loading*.  What's the relationship between bundle activation and class *construction*?  That is, suppose code in bundle b calls "new Foo()", where Foo is a class in bundle a.  Does Foo's constructor run before or after a's startup method?
 
Thanks,
  -walter


From: equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Thomas Watson
Sent:
Tuesday, November 07, 2006 2:49 PM
To:
eclipse-dev@xxxxxxxxxxx
Cc:
equinox-dev@xxxxxxxxxxx
Subject:
[equinox-dev] Standardize Eclipse Lazy Start



Hi


The Equinox team has been working with the OSGi Alliance to standardize the Eclipse Lazy Start mechanism (i.e. Eclipse-LazyStart).  See the Equinox WIKI at http://wiki.eclipse.org/index.php/Lazy_Start_Bundles for details on what is changing in Eclipse 3.3 with respect to Eclipse-LazyStart.


The initial code changes have been released to org.eclipse.osgi and will be included in tonight's N-Build.  Please let the Equinox team know if you encounter any unexpected behavior related to lazy bundle activation.


Thanks.


Tom

_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Back to the top