Re: Loading NSBundles (.framework) not originally included in project
Re: Loading NSBundles (.framework) not originally included in project
- Subject: Re: Loading NSBundles (.framework) not originally included in project
- From: Art Isbell <email@hidden>
- Date: Wed, 23 Apr 2003 11:39:40 -1000
On Tuesday, April 22, 2003, at 05:14 PM, King Chung Huang wrote:
Is it possible to load in known NSBundles (.framework) in a WebObjects
app
that weren't originally included in the project? My application
accepts a
variety of plug-ins in the form of .framework bundles. If I know the
names
of the bundles and where they're located, can I load them
programmatically?
NSBundle.bundleWithPath(aPath) is deprecated. Is there some other way
to do
it?
NSBundle's deprecated load() method's documentation states that "the
default ClassLoader does not allow true dynamic class loading, it loads
only those classes in the classpath at launch time." So one hack might
be to combine your plugin jars with a jar of a framework included in
your app project's frameworks. You might even build a bogus empty
"PlugIns" framework expressly for this purpose.
Or if you want to delve into Java class loaders, you might be able to
create a ClassLoader subclass that will load your plugins (see
file:///Developer/Documentation/Java/Reference/1.3.1/java/lang/
ClassLoader.html).
Please report what you learn.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.