[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [equinox-dev] Standardize Eclipse Lazy Start
|
Before, the class loader would receive the request to load the class and
it would first activate the bundle before loading the class. Now the class
will be loaded before activating the bundle.
However no code in the class (static initializer) will be run before
activating the bundle.
As for running the constructor in response to "new Foo()", the bytecode to
invoke the constructor are at the site of the new and are run after the
class is loaded and the bundle activated. So no change in the relationship
between bundle activation and *object* construction (classes get
initialized not constructed; and the class intialization will occur before
the object is constructed but both happen after the class is loaded and
after the bundle is activated).
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
"Walter Harley" <wharley@xxxxxxx>
Sent by: equinox-dev-bounces@xxxxxxxxxxx
11/08/2006 09: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