p listener
(javax.servlet.ServletContextListener) to perform initialization.
- George
http://www.idiacomputing.com/
> -Original Message-
> From: temp temp [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 18, 2006 6:13 AM
> To: user@struts.apache.org
> Subject: interface for constants
>
it is a good practice to have a constants interface, but its a really
bad practice to perform hidden data accesses for constant
initialization. In your case a UtilityClass (static methods) with a
controlled initialization would be much better.
if ObjectDAO.get("APPLICATION") fails the results are
absolutely not
-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 18, 2006 3:43 PM
To: user@struts.apache.org
Subject: interface for constants
I have is a constants interface with static final fields .
Each field value is a call to DAO.
For example
I have is a constants interface with static final fields .
Each field value is a call to DAO.
For example
interface IObjectTypeIds{
public static final int APPLICATION =ObjectDAO.get("APPLICATION");
}
Is this is a good practice ?
-
Do you Yaho
4 matches
Mail list logo