avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pro...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/transport/publishing AbstractPublisher.java
Date Sun, 30 Jun 2002 17:24:03 GMT
proyal      2002/06/30 10:24:03

  Modified:    src/java/org/apache/avalon/cornerstone/blocks/transport/publishing
                        AbstractPublisher.java
  Log:
  Added debug logging statement to the AbstractPublisher
  
  Revision  Changes    Path
  1.18      +14 -1     jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/transport/publishing/AbstractPublisher.java
  
  Index: AbstractPublisher.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/transport/publishing/AbstractPublisher.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- AbstractPublisher.java	18 May 2002 09:50:39 -0000	1.17
  +++ AbstractPublisher.java	30 Jun 2002 17:24:03 -0000	1.18
  @@ -159,6 +159,10 @@
       public void publish( Object implementation, String asName, Class interfaceToExpose
)
           throws PublicationException
       {
  +        if( getLogger().isDebugEnabled() )
  +            getLogger().debug( "Publishing object [as: " + asName + ", impl: " + implementation
  +                              + ", interf: "+ interfaceToExpose + "]" );
  +
           m_abstractServer.publish( implementation, asName, interfaceToExpose );
       }
   
  @@ -178,6 +182,9 @@
           Object implementation, String asName, PublicationDescription publicationDescription
)
           throws PublicationException
       {
  +        if( getLogger().isDebugEnabled() )
  +            getLogger().debug( "Publishing object [as: " + asName + ", impl: " + implementation
+ "]" );
  +
           m_abstractServer.publish( implementation, asName, publicationDescription );
       }
   
  @@ -194,6 +201,9 @@
        */
       public void unPublish( Object o, String s ) throws PublicationException
       {
  +        if( getLogger().isDebugEnabled() )
  +            getLogger().debug( "Unpublishing object [nane: " + s + ", impl: " + o + "]"
);
  +
           m_abstractServer.unPublish( o, s );
       }
   
  @@ -211,6 +221,9 @@
        */
       public void replacePublished( Object o, String s, Object o1 ) throws PublicationException
       {
  +        if( getLogger().isDebugEnabled() )
  +            getLogger().debug( "Replacing published object [nane: " + s + ", existing:
" + o + ", new: " + o1 + "]" );
  +
           m_abstractServer.replacePublished( o, s, o1 );
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message