donaldp     02/05/15 05:02:12

  Modified:    src/java/org/apache/avalon/phoenix/tools/verifier
                        Resources.properties SarVerifier.java
  Log:
  Remove warnings for users who implment the Service interface as the interface 
has been removed and thus no need for warnings anymore.
  
  Revision  Changes    Path
  1.8       +0 -1      
jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/verifier/Resources.properties
  
  Index: Resources.properties
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/verifier/Resources.properties,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Resources.properties      14 May 2002 10:42:50 -0000      1.7
  +++ Resources.properties      15 May 2002 12:02:12 -0000      1.8
  @@ -22,5 +22,4 @@
   verify-block-type=Verifying that the specified Blocks have valid types.
   verify-listener-type=Verifying that the specified BlockListeners have valid 
types.
   
  -service-interface-deprecated=Warning: The Block named "{0}" exports a 
service ({1}) that extends org.apache.avalon.phoenix.Service. The Service 
interface is deprecated and should not be used.
   verifier.service-isa-lifecycle.error=The Block named "{0}" (implementation 
class "{1}"), implements a service "{2}" which extends a Lifecycle interface 
"{3}". This violates the expected usage patterns.
  
  
  
  1.13      +1 -10     
jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/verifier/SarVerifier.java
  
  Index: SarVerifier.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/verifier/SarVerifier.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- SarVerifier.java  14 May 2002 10:42:50 -0000      1.12
  +++ SarVerifier.java  15 May 2002 12:02:12 -0000      1.13
  @@ -23,7 +23,6 @@
   import org.apache.avalon.framework.service.Serviceable;
   import org.apache.avalon.phoenix.Block;
   import org.apache.avalon.phoenix.BlockListener;
  -import org.apache.avalon.phoenix.Service;
   import org.apache.avalon.phoenix.metadata.BlockListenerMetaData;
   import org.apache.avalon.phoenix.metadata.BlockMetaData;
   import org.apache.avalon.phoenix.metadata.DependencyMetaData;
  @@ -58,7 +57,7 @@
    * </ul>
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
  - * @version $Revision: 1.12 $ $Date: 2002/05/14 10:42:50 $
  + * @version $Revision: 1.13 $ $Date: 2002/05/15 12:02:12 $
    */
   public class SarVerifier
       extends AbstractLogEnabled
  @@ -663,14 +662,6 @@
                   final String message =
                       REZ.getString( "service-not-interface", name, classname 
);
                   throw new VerifyException( message );
  -            }
  -
  -            if( Service.class.isAssignableFrom( classes[ i ] ) )
  -            {
  -                final String message =
  -                    REZ.getString( "service-interface-deprecated", name, 
classname );
  -                getLogger().warn( message );
  -                System.err.println( message );
               }
   
               checkNotFrameworkInterface( name, classname, classes[ i ] );
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to