Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

General Question - In which way should I store a "UTILS" class (would like to hear a second opinion)

 
Daniel Reznick
Ranch Hand
Posts: 50
Eclipse IDE Google App Engine jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Hi

I'm building a web application, ( Tomcat + JSF + Icefaces )

I got a bunch of methods that are being used in many places...

In which way should i store them , a Static class with static methods or an Instance of that class that will be stored in Application scope, or some other way of storing this class and accessing it?

Thanks in advance...

(I asked same question couple of days ago on other forum, but i would like to hear other opinions about that topic)

 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My answer stays.
 
Daniel Reznick
Ranch Hand
Posts: 50
Eclipse IDE Google App Engine jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just use a final class with a private constructor and only static methods for that.


thanks

works great...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!