1 23 24 package org.objectweb.jorm.api; 25 26 import org.objectweb.jorm.api.PException; 27 import org.objectweb.jorm.api.PMappingStructuresManager; 28 import org.objectweb.jorm.metainfo.api.Manager; 29 import org.objectweb.jorm.metainfo.api.MappingFactory; 30 import org.objectweb.jorm.xml2mi.api.MappingParser; 31 import org.objectweb.jorm.xml2mi.api.Parser; 32 import org.objectweb.jorm.mi2xml.api.MappingDomtreeBuilder; 33 import org.objectweb.jorm.mi2xml.api.Writer; 34 import org.objectweb.util.monolog.api.LoggerFactory; 35 36 import java.util.Iterator ; 37 import java.util.Properties ; 38 import java.util.Collection ; 39 40 44 public interface JormConfigurator { 45 public static final String LOGGER_NAME = 46 "org.objectweb.jorm.config"; 47 public static final String DEFAULT_JORM_CONFIGURATION_FILE = 48 "jorm.properties"; 49 public static final String USE_CONTEXT_CLASSLOADER = 50 "use.context.classloader"; 51 52 58 public void configure(String propertyfile) throws PException; 59 60 66 public void configure() throws PException; 67 68 74 public void configure(Properties p); 75 76 80 public void configureLog(String propertyfile) throws PException; 81 82 86 public Iterator knownMappers() throws PException; 87 88 92 public Manager getMIManager() throws PException; 93 94 98 public Parser getParser() throws PException; 99 100 106 public MappingFactory getMIFactory(String mappername) throws PException; 107 108 114 public PMappingStructuresManager getSchMgr(String mappername) throws PException; 115 116 122 public Class getGcmClass(String mappername) throws PException; 123 124 130 public MappingParser getMappingParser(String mappername) throws PException; 131 132 137 public Writer getWriter() throws PException; 138 139 145 public MappingDomtreeBuilder getMappingDomtreeBuilder(String mappername) 146 throws PException; 147 148 154 public Collection getSubMappers(String mappername) throws PException; 155 156 160 public void removeMapper(String mn); 161 162 165 public void removeAllMappers(); 166 167 172 public void removeSubMapper(String mn, String smn); 173 174 179 public void addSubMapper(String mn, String smn); 180 181 185 public void setLoggerFactory(LoggerFactory lf); 186 187 191 public LoggerFactory getLoggerFactory() throws PException; 192 } 193 | Popular Tags |