1 23 24 package org.objectweb.jorm.mapper.fos.metainfo; 25 26 import org.objectweb.jorm.util.api.Loggable; 27 import org.objectweb.jorm.metainfo.api.MappingFactory; 28 import org.objectweb.jorm.metainfo.api.Mapping; 29 import org.objectweb.jorm.metainfo.api.MetaObject; 30 import org.objectweb.jorm.metainfo.api.MappingPrinter; 31 import org.objectweb.jorm.metainfo.lib.BasicMetaObject; 32 import org.objectweb.util.monolog.api.Logger; 33 import org.objectweb.util.monolog.api.LoggerFactory; 34 35 import java.io.Serializable ; 36 37 40 public class FosMappingFactory 41 extends BasicMetaObject 42 implements MappingFactory { 43 44 public FosMappingFactory() { 45 super(null); 46 } 47 48 50 56 public Mapping createMapping(String mapperName, MetaObject parent) { 57 FosMapping mapping = new FosMapping(mapperName, parent); 58 setLoggingOnChild(mapping); 59 return mapping; 60 } 61 62 public MappingPrinter createMappingPrinter() { 63 return new FosMappingPrinter(); 64 } 65 } 66 | Popular Tags |