You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2005/07/13 16:15:09 UTC

svn commit: r216160 - /myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/AddResource.java

Author: matzew
Date: Wed Jul 13 07:15:06 2005
New Revision: 216160

URL: http://svn.apache.org/viewcvs?rev=216160&view=rev
Log:
AddResource should be a util class. so no public constructor and a final clazz

Modified:
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/AddResource.java

Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/AddResource.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/AddResource.java?rev=216160&r1=216159&r2=216160&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/AddResource.java (original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/AddResource.java Wed Jul 13 07:15:06 2005
@@ -45,7 +45,7 @@
  * @author Sylvain Vieujot (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
-public class AddResource {
+public final class AddResource {
     protected static final Log log = LogFactory.getLog(AddResource.class);
 
     private static final String COMPONENTS_PACKAGE = "org.apache.myfaces.custom.";
@@ -54,6 +54,10 @@
 
     private static final String ADDITIONAL_HEADER_INFO_REQUEST_ATTRUBITE_NAME = "myFacesHeaderResource2Render";
 
+    private AddResource() {
+    	//no object creation allowed (util clazz)
+    }
+    
     // Methodes to Add resources
 
     /**