I seem to remember someone claiming sometime that you didn't
actually need the reflection.
You don't need to use any reflection to use the ApplicationAdapter
on non-Mac platforms without including the stubs. All you need to
do is make sure that the code path that executes when running on
non-macs doesn't actually use any classes from the stub. I do it
with a simple check of the os system property.
But if you use reflection, you don't have to ship the Stub jar. It is
only required if you want to compile on a non Mac platform. This is
the intended use of it.
This is a pluggable jar of stub classes representing the new Apple
eAWT and eIO APIs for Java 1.4 on Mac OS X. The purpose of these
stubs is to allow for compilation of eAWT- or eIO-referencing code
on platforms other than Mac OS X. The jar file is enclosed in a zip
archive for easy expansion on other platforms. These stubs are not
intended for the runtime classpath on non-Mac platforms. Please see
the OSXAdapter sample for how to write cross-platform code that
uses eAWT.
--
Rohan Lloyd
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden