Thursday February 27, 2003
How do you manage your Constants?
I'm sure most of you Java Developers have a methodology for handling your "constant" values. I've seen a couple of different techniques, and I'd like to see what everyone else is doing. Currently, I use a Constants.java file that has a bunch of public final static String lines in it. I got this technique from the struts-example app when I first started working with Struts. I recently came across (can't remember where) a technique where the Constants.java file was an Interface and it was simply implemented. How are you handling this in your apps?
Secondly - do you ever use these Constants in your JSPs, or do you just use the actual values? I use the actual values - less typing.
Posted in Java
at Feb 27 2003, 09:40:01 AM MST
5 Comments
Search This Site
Recent Entries
- Jack's Mohawk
- LinkedIn Cuts 10% (a.k.a. The Journey is Over)
- Happy Birthday Abbie!
- Moving from Spring's XML to Annotations in AppFuse
- Free Maven Training in New Orleans on Election Day
- AppFuse Light ยป AppFuse, Maven Archetypes and Shared Web Assets
- Great Weekend in Montana
- Colorado Software Summit 2008 Wrapup
- RESTful Web Applications with Subbu Allamaraju
- Core Animation with Bill Dudney
Posted by dsuspense on February 27, 2003 at 11:22 AM MST #
Posted by dsuspense on February 27, 2003 at 11:23 AM MST #
Posted by dsuspense on February 27, 2003 at 11:25 AM MST #
Posted by Ryan Scharer on February 27, 2003 at 11:30 AM MST #
Posted by James Childers on February 27, 2003 at 01:11 PM MST #