@Override
protected void configure() {
// Setup @MapScoped and bind MapDefinition as a seed object
install(new MapInjectionScope().new Manifest());
final FactoryModuleBuilder fmb = new FactoryModuleBuilder();
install(fmb.build(MapFilePreprocessor.Factory.class));
install(fmb.build(MapLogger.Factory.class));
bind(SAXHandler.class).to(BoundedSAXHandler.class);
bind(SAXHandlerFactory.class).toInstance(BoundedSAXHandler::new);
bind(JDOMFactory.class).to(BoundedJDOMFactory.class);
bind(PGMMap.Factory.class);
bind(MapConfiguration.class).to(PGMMapConfiguration.class);
bind(MapDoc.class).to(MapDocument.class);
inSet(MapRootParser.class);
bind(ValidationContext.class).to(FeatureDefinitionContext.class);
bind(MapModuleContext.class).in(MapScoped.class);
bind(ModuleExceptionHandler.class).to(MapModuleContext.class);
expose(MapDefinition.class);
expose(PGMMap.class);
requestStaticInjection(XMLUtils.class);
}
java类org.jdom2.input.sax.SAXHandler的实例源码
MapManifest.java 文件源码
项目:ProjectAres
阅读 30
收藏 0
点赞 0
评论 0
MCRSAXContent.java 文件源码
项目:mycore
阅读 23
收藏 0
点赞 0
评论 0
@Override
public Document asXML() throws JDOMException, IOException, SAXException {
SAXHandler jdomContentHandler = new SAXHandler();
xmlReader.setContentHandler(jdomContentHandler);
xmlReader.parse(inputSource);
return jdomContentHandler.getDocument();
}
EmptyAwareSAXHandlerFactory.java 文件源码
项目:FTLAV
阅读 19
收藏 0
点赞 0
评论 0
@Override
public SAXHandler createSAXHandler(JDOMFactory factory) {
return new EmptyAwareSAXHandler(factory);
}
EmptyAwareSAXHandlerFactory.java 文件源码
项目:Slipstream-Mod-Manager
阅读 21
收藏 0
点赞 0
评论 0
@Override
public SAXHandler createSAXHandler( JDOMFactory factory ) {
return new EmptyAwareSAXHandler( factory );
}