1 package org.apache.maven.plugin; 2 3 18 19 import org.codehaus.plexus.component.configurator.ConfigurationListener; 20 import org.codehaus.plexus.logging.Logger; 21 22 28 public class DebugConfigurationListener 29 implements ConfigurationListener 30 { 31 private Logger logger; 32 33 public DebugConfigurationListener( Logger logger ) 34 { 35 this.logger = logger; 36 } 37 38 public void notifyFieldChangeUsingSetter( String fieldName, Object value, Object target ) 39 { 40 if ( logger.isDebugEnabled() ) 41 { 42 logger.debug( " (s) " + fieldName + " = " + value ); 43 } 44 } 45 46 public void notifyFieldChangeUsingReflection( String fieldName, Object value, Object target ) 47 { 48 if ( logger.isDebugEnabled() ) 49 { 50 logger.debug( " (f) " + fieldName + " = " + value ); 51 } 52 } 53 } 54 | Popular Tags |