Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Packages and resources [2) SOLVED]


  • From: Andrea.Vicentini@xxxxxxxxxxx (Andrea Vicentini)
  • Subject: Packages and resources [2) SOLVED]
  • Date: Tue, 29 Feb 2000 11:30:23 +0100



  Sorry, I have to answer to myself: the getResource() or getResourceAsStream()
in java.lang.Class is enough for the point 2).

I am anyway interested in discussing the point 1).

Thanks.



BRAIN Development GmbH
Andrea Vicentini
System Engineer e-Business

Phone:    +49 (7151) / 602-332
Fax:      +49 (7151) / 602-372
Internet: http://www.brainag.com
e-mail:        andrea.vicentini@xxxxxxxxxxx
     a_vicentini@xxxxxxxxxxx






"Andrea Vicentini" <Andrea.Vicentini@xxxxxxxxxxx> on 29.02.2000 08:31:17

To:   advanced-java@xxxxxxxxxxxxxxxx
cc:    (bcc: Andrea Vicentini/DV/BRAIN)

Subject:  Packages and resources







  Hi all!
1) a base-theorethical question about packages: in my application, I have a few
high-level packages, with name "com.<company>.<project>." + "foundation",
"model", "logic", "application", and so on.
When does it make sense to create sub-packages under this
"first-level-package"? Is there any rule of thumb?
For example, does it make sense to create an "exceptions" package under
"foundation" to hold the 2 or 3 exception classes of the foundation?

2) regarding packages: I would like to create packages containing (for example)
configuration files. Is it then possible to access those resources in a
comfortable way? Is there any getResource() method with this meaning?
I've tried with the ClassLoader.getResource method, but my ClassLoader is null
(I'm not using applets). I'm using a JDK1.1.

  Thanks in advance.


BRAIN Development GmbH
Andrea Vicentini
System Engineer e-Business

Phone:    +49 (7151) / 602-332
Fax:      +49 (7151) / 602-372
Internet: http://www.brainag.com
e-mail:        andrea.vicentini@xxxxxxxxxxx
     a_vicentini@xxxxxxxxxxx



---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx






---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx