| View previous topic :: View next topic |
| Author |
Message |
server Guest
|
Posted: Thu Aug 25, 2005 7:17 pm Post subject: PropertyResourceBundle and packages |
|
|
message unavailable |
|
| Back to top |
|
 |
No one Guest
|
Posted: Thu Aug 25, 2005 7:17 pm Post subject: Re: PropertyResourceBundle and packages |
|
|
No one wrote:
| Quote: | I've used PropertyResourceBundle to load .properties files before in
unpackaged classes, but now I have some in a package and I can't figure
out the proper file name and base name to give .getBundle(). I have
tried file names such as:
Classname.properties
full.package.path.Classname.properties
and have tried giving boht the .getBundle(). Neither seems to work. the
.properties file does show up in the correct directory in the classes
folder (that is, with the .class file for the class). WHat am I missing
here?
Thanks in advance.
|
Never mind. I must have been sucking on the stupid pump pretty hard. Duh..
filename: classname.properties
arg to getBundle(): "\\full\package\\path\\classname"
Duh. |
|
| Back to top |
|
 |
Adam Maass Guest
|
Posted: Tue Nov 22, 2005 7:38 am Post subject: Re: Object scope.... |
|
|
"Ken" <mkennethclark (AT) comcast (DOT) net> wrote in message
news:Fs2dnchkNYjQDyvfRVn-1Q (AT) comcast (DOT) com...
| Quote: | Is there a difference in the following blocks of code?
if ( true ) {
new UserScreen();
}
/==============================
if ( true ) {
Object o = new UserScreen();
}
//end
There seems to be an issue with disposing of the UserScreen object under
the first scenario. To me, the two blocks of code have the same effect.
|
There is a slight difference. The second variation uses a local variable
slot which won't necessarily be overwritten or otherwise disposed of until
the method in which this code occurs ends. This may prevent the UserScreen
instance from being garbage collected as expected.
-- Adam Maass |
|
| Back to top |
|
 |
|