You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by an...@apache.org on 2004/06/21 01:46:54 UTC

cvs commit: cocoon-2.1/src/java/org/apache/cocoon/util ClassUtils.java

antonio     2004/06/20 16:46:54

  Modified:    .        status.xml
               src/java/org/apache/cocoon/util ClassUtils.java
  Log:
  Deprecate methods implementsInterface(String, String), implementsInterface(Class, Class), lastModified(Class) and which(Class)
  in org.apache.cocoon.util.ClassUtils
  These methods will be removed on the next version.
  
  Revision  Changes    Path
  1.370     +7 -1      cocoon-2.1/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/status.xml,v
  retrieving revision 1.369
  retrieving revision 1.370
  diff -u -r1.369 -r1.370
  --- status.xml	18 Jun 2004 16:45:57 -0000	1.369
  +++ status.xml	20 Jun 2004 23:46:54 -0000	1.370
  @@ -204,6 +204,12 @@
   
     <changes>
    <release version="@version@" date="@date@">
  +    <action dev="AG" type="update">
  +     Deprecate methods implementsInterface(String, String),
  +     implementsInterface(Class, Class), lastModified(Class)
  +     and which(Class) in org.apache.cocoon.util.ClassUtils
  +     These methods will be removed on the next version.
  +   </action>
      <action dev="VG" type="update">
        Portal: CocoonPortlet has new configuration parameter,
        default-session-scope.
  
  
  
  1.3       +5 -1      cocoon-2.1/src/java/org/apache/cocoon/util/ClassUtils.java
  
  Index: ClassUtils.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/util/ClassUtils.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ClassUtils.java	5 Mar 2004 13:03:00 -0000	1.2
  +++ ClassUtils.java	20 Jun 2004 23:46:54 -0000	1.3
  @@ -82,6 +82,7 @@
        * Tests if a class implements a given interface
        *
        * @return true if class implements given interface.
  +     * @deprecated Will be removed 2 versions after 2.1.5
        */
       public static boolean implementsInterface(String className, String iface) throws Exception {
           Class class1 = ClassUtils.loadClass (className);
  @@ -93,6 +94,7 @@
        * Tests if a class implements a given interface
        *
        * @return true if class implements given interface.
  +     * @deprecated Will be removed 2 versions after 2.1.5
        */
       public static boolean implementsInterface(Class class1, Class iface) {
           return iface.isAssignableFrom (class1);
  @@ -107,6 +109,7 @@
        * @exception IOException IOError
        * @exception IllegalArgumentException The class was not loaded from a file
        * or directory
  +     * @deprecated Will be removed 2 versions after 2.1.5
        */
       public static long lastModified(Class aClass)
           throws IOException, IllegalArgumentException  {
  @@ -135,6 +138,7 @@
        * by the current classpath.
        *
        * @param aClass Name of the class.
  +     * @deprecated Will be removed 2 versions after 2.1.5
        */
        public static String which(Class aClass) {
           String path = null;