CVS: jcontainer/dna/impl/src/java/org/jcontainer/dna/impl ContainerUtil.java,1.4,1.5 DefaultParameters.java,1.17,NONE ParametersUtil.java,1.2,NONE

Peter Donald <pdonald-yCVjj/[email protected]>
Newsgroups gmane.comp.java.jcontainer.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcontainer/jcontainer/dna/impl/src/java/org/jcontainer/dna/impl
In directory hogshead.codehaus.org:/tmp/cvs-serv26277/impl/src/java/org/jcontainer/dna/impl

Modified Files:
	ContainerUtil.java 
Removed Files:
	DefaultParameters.java ParametersUtil.java 
Log Message:
Remove Parameters and Parameterizable from framework with the aim of simplifying usage patterns


Index: ContainerUtil.java
===================================================================
RCS file: /cvsroot/jcontainer/jcontainer/dna/impl/src/java/org/jcontainer/dna/impl/ContainerUtil.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ContainerUtil.java	23 Sep 2003 08:10:14 -0000	1.4
+++ ContainerUtil.java	29 Oct 2003 22:36:21 -0000	1.5
@@ -15,9 +15,6 @@
 import org.jcontainer.dna.LogEnabled;
 import org.jcontainer.dna.Logger;
 import org.jcontainer.dna.MissingResourceException;
-import org.jcontainer.dna.ParameterException;
-import org.jcontainer.dna.Parameterizable;
-import org.jcontainer.dna.Parameters;
 import org.jcontainer.dna.ResourceLocator;
 
 /**
@@ -103,33 +100,6 @@
                 throw new IllegalArgumentException( message );
             }
             ( (Configurable)object ).configure( configuration );
-        }
-    }
-
-    /**
-     * Supply specified object with Parameters if it implements the
-     * Parameterizable interface.
-     *
-     * @param object the object to process
-     * @param parameters the Parameters. If null then the specified
-     *        object must not implement Parameterizable.
-     * @throws IllegalArgumentException if the object is Parameterizable
-     *         and parameters is null
-     * @throws ParameterException if processing lifecycle stage on
-     *         object throws exception
-     */
-    public static void parameterize( final Object object,
-                                     final Parameters parameters )
-        throws ParameterException
-    {
-        if( object instanceof Parameterizable )
-        {
-            if( null == parameters )
-            {
-                final String message = "Null parameters.";
-                throw new IllegalArgumentException( message );
-            }
-            ( (Parameterizable)object ).parameterize( parameters );
         }
     }
 

--- DefaultParameters.java DELETED ---

--- ParametersUtil.java DELETED ---
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.