File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wrapper classes

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Can I have a wrapper class for static variables
 
Nathan Paris
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ;
}
}
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic