Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Applets and the fly likes wrapper classes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "wrapper classes" Watch "wrapper classes" New topic
Author

wrapper classes

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Can I have a wrapper class for static variables
Nathan Paris
Greenhorn

Joined: Jun 21, 2000
Posts: 28
You could have a wrapper class that provides a getter/setter for the static as long as it has permissions.
I.e.
class Base
{
protected static ... myStatic;
}
class Wrapper extends Base
{
public static getMyStatic()
{
return myStatic ;
}
}
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: wrapper classes
 
Similar Threads
Accessing array using EL
Design Pattern
Wrapper Classes
Autoboxing Issue: Integer Wrapper==double primitive
primary key type can't be primitive type. True?