/** * Raise a fatal error. */ public void fatal(String message, @Nullable Object source, @Nullable ParseState parseState, @Nullable Throwable cause) { Location location = new Location(getResource(), source); this.problemReporter.fatal(new Problem(message, location, parseState, cause)); }
/** * Raise a regular error. */ public void error(String message, @Nullable Object source, @Nullable ParseState parseState, @Nullable Throwable cause) { Location location = new Location(getResource(), source); this.problemReporter.error(new Problem(message, location, parseState, cause)); }
/** * Raise a non-critical warning. */ public void warning(String message, @Nullable Object source, @Nullable ParseState parseState, @Nullable Throwable cause) { Location location = new Location(getResource(), source); this.problemReporter.warning(new Problem(message, location, parseState, cause)); }
/** * Raise a regular error. */ public void error(String message, @Nullable Object source, @Nullable ParseState parseState, @Nullable Throwable cause) { Location location = new Location(getResource(), source); this.problemReporter.error(new Problem(message, location, parseState, cause)); }
/** * Raise a non-critical warning. */ public void warning(String message, @Nullable Object source, @Nullable ParseState parseState, @Nullable Throwable cause) { Location location = new Location(getResource(), source); this.problemReporter.warning(new Problem(message, location, parseState, cause)); }
/** * Raise a fatal error. */ public void fatal(String message, @Nullable Object source, @Nullable ParseState parseState, @Nullable Throwable cause) { Location location = new Location(getResource(), source); this.problemReporter.fatal(new Problem(message, location, parseState, cause)); }
public void error(String message, Object source, ParseState parseState, Throwable cause) { Location location = new Location(getResource(), source); this.problemReporter.error(new Problem(message, location, parseState, cause)); }
public void fatal(String message, Object source, ParseState parseState, Throwable cause) { Location location = new Location(getResource(), source); this.problemReporter.fatal(new Problem(message, location, parseState, cause)); }
public void warning(String message, Object source, ParseState parseState, Throwable cause) { Location location = new Location(getResource(), source); this.problemReporter.warning(new Problem(message, location, parseState, cause)); }
/** * Raise a fatal error. */ public void fatal(String message, Object source, ParseState parseState, Throwable cause) { Location location = new Location(getResource(), source); this.problemReporter.fatal(new Problem(message, location, parseState, cause)); }
/** * Raise a regular error. */ public void error(String message, Object source, ParseState parseState, Throwable cause) { Location location = new Location(getResource(), source); this.problemReporter.error(new Problem(message, location, parseState, cause)); }
/** * Raise a non-critical warning. */ public void warning(String message, Object source, ParseState parseState, Throwable cause) { Location location = new Location(getResource(), source); this.problemReporter.warning(new Problem(message, location, parseState, cause)); }
@Override protected AbstractBeanDefinition parseInternal(Element importElement, ParserContext parserContext) { final ReaderContext readerContext = parserContext.getReaderContext(); final Resource currentResource = readerContext.getResource(); final XmlBeanDefinitionReader xmlBeanDefinitionReader = parserContext.getReaderContext().getReader(); final String resource = importElement.getAttribute(ATTRIBUTE_RESOURCE); final String var = importElement.getAttribute(ATTRIBUTE_VAR); BeanDefinition importParserContext = getParsingContext(parserContext.getRegistry()); final Properties properties = (Properties) importParserContext.getAttribute(ATTRIBUTE_PARSING_PROPERTIES); final Set<String> processedImports = (Set<String>) importParserContext.getAttribute(ATTRIBUTE_PROCESSED_IMPORTS); if (!processedImports.contains(resource + var)) { final Resource relativeResource; try { relativeResource = currentResource.createRelative(resource); } catch (IOException e) { throw new RuntimeException("Cannot parse imported profile: " + resource, e); } properties.setProperty("var", var); LOG.debug("Loading resource [{}] from [{}]. Relative resource is [{}]", resource, currentResource, relativeResource); xmlBeanDefinitionReader.loadBeanDefinitions(relativeResource); processedImports.add(resource); } else { // skip import, hence it has already been processed } return null; }