LadyLucky
(stranger)
08/25/03 10:19 PM
Neat.. .also can extend to loading from a class

Great article, I am incorporating this code into our app as I type this.

Question: The way I understand it, loading from a class (as in Class.getResource()) works slightly differently to the classloader, even for that class. So if I have a resource bundled in my package, then I want to load it from the class?

So I think this could be extended to have something like:

class:com.acme.widgets.MyWidget/MyResource.xml

yes? Though then you have to worry about how to load that class. You almost need a URL just for the class :-)



Contact us JavaWorld

Powered by UBB.threads™ 6.5.5

Featured White Papers


RESEARCH CENTERS: Java Standard Edition | Java Enterprise Edition | Java Micro Edition | Development Tools
About Us | Advertise | Contact Us | Terms of Service/Privacy
Copyright, 2006-2008 Network World, Inc. All rights reserved.