1 19 package org.apache.avalon.cornerstone.blocks.masterstore; 20 21 import org.apache.avalon.framework.logger.AbstractLogEnabled; 22 23 import java.io.File ; 24 import java.io.IOException ; 25 26 30 public class AvalonFileRepositoryMonitor extends AbstractLogEnabled implements FileRepositoryMonitor { 31 public void repositoryCreated(Class aClass, String m_name, String m_destination, String childName) { 32 getLogger().debug( "Child repository of " + m_name + " created in " + 33 m_destination + File.pathSeparatorChar + 34 childName + File.pathSeparator ); 35 } 36 37 public void keyRemoved(Class aClass, String key) { 38 getLogger().debug( "removed key " + key ); 39 } 40 41 public void checkingKey(Class aClass, String key) { 42 getLogger().debug( "checking key " + key ); 43 } 44 45 public void returningKey(Class aClass, String key) { 46 getLogger().debug( "returning key " + key ); 47 48 } 49 50 public void returningObjectForKey(Class aClass, Object object, String key) { 51 getLogger().debug( "returning object " + object + " for key " + key ); 52 } 53 54 55 public void storingObjectForKey(Class xmlFilePersistentObjectRepository, Object value, String key) { 56 getLogger().debug( "storing object " + value + " for key " + key ); 57 } 58 59 public void initialized(Class aClass) { 60 getLogger().info( "Init " + aClass.getName() + " Store" ); 61 } 62 63 public void pathOpened(Class aClass, String m_path) { 64 getLogger().info( aClass.getName() + " opened in " + m_path ); 65 } 66 67 public void unExpectedIOException(Class aClass, String message, IOException ioe) { 68 getLogger().warn( message, ioe ); 69 } 70 } 71 | Popular Tags |