You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/05/15 13:32:03 UTC

cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/infobuilder BlockInfoBuilder.java

donaldp     02/05/15 04:32:02

  Modified:    src/java/org/apache/avalon/phoenix/tools/infobuilder
                        BlockInfoBuilder.java
  Log:
  Stop allowing blockinfo elements named "management" to expose
  services as MBeans
  Was only Non-deprecated between 2002/01/12 and 2002/01/25
  
  The correct element name is <management-access-points/>
  
  Revision  Changes    Path
  1.15      +2 -12     jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/infobuilder/BlockInfoBuilder.java
  
  Index: BlockInfoBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/infobuilder/BlockInfoBuilder.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- BlockInfoBuilder.java	12 May 2002 02:07:30 -0000	1.14
  +++ BlockInfoBuilder.java	15 May 2002 11:32:02 -0000	1.15
  @@ -25,7 +25,7 @@
    * is specified in the BlockInfo specification.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.14 $ $Date: 2002/05/12 02:07:30 $
  + * @version $Revision: 1.15 $ $Date: 2002/05/15 11:32:02 $
    */
   public final class BlockInfoBuilder
       extends AbstractLogEnabled
  @@ -56,17 +56,7 @@
           configuration = info.getChild( "services" );
           final ServiceDescriptor[] services = buildServices( configuration );
   
  -        configuration = info.getChild( "management" );
  -        if( 0 != configuration.getChildren().length )
  -        {
  -            final String message = REZ.getString( "deprecated-management-declaration", classname );
  -            System.err.println( message );
  -            getLogger().warn( message );
  -        }
  -        else
  -        {
  -            configuration = info.getChild( "management-access-points" );
  -        }
  +        configuration = info.getChild( "management-access-points" );
           final ServiceDescriptor[] management = buildServices( configuration );
   
           configuration = info.getChild( "dependencies" );
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>