/** * Creates a not-found lookup result that then can be used as the return value of * {@link TemplateLookupStrategy#lookup(TemplateLookupContext)}. (In the current implementation it just always * returns the same static singleton, but that might need to change in the future.) */ public TemplateLookupResult createNegativeLookupResult() { return TemplateLookupResult.createNegativeResult(); }
/** Used internally to create the appropriate kind of result from the parameters. */ static TemplateLookupResult from(String templateSourceName, Object templateSource) { return templateSource != null ? new PositiveTemplateLookupResult(templateSourceName, templateSource) : createNegativeResult(); }
return TemplateLookupResult.createNegativeResult();
/** * Creates a not-found lookup result that then can be used as the return value of * {@link TemplateLookupStrategy#lookup(TemplateLookupContext)}. (In the current implementation it just always * returns the same static singleton, but that might need to change in the future.) */ public TemplateLookupResult createNegativeLookupResult() { return TemplateLookupResult.createNegativeResult(); }
/** * Creates a not-found lookup result that then can be used as the return value of * {@link TemplateLookupStrategy#lookup(TemplateLookupContext)}. (In the current implementation it just always * returns the same static singleton, but that might need to change in the future.) */ public TemplateLookupResult createNegativeLookupResult() { return TemplateLookupResult.createNegativeResult(); }
/** Used internally to create the appropriate kind of result from the parameters. */ static TemplateLookupResult from(String templateSourceName, Object templateSource) { return templateSource != null ? new PositiveTemplateLookupResult(templateSourceName, templateSource) : createNegativeResult(); }
/** Used internally to create the appropriate kind of result from the parameters. */ static TemplateLookupResult from(String templateSourceName, Object templateSource) { return templateSource != null ? new PositiveTemplateLookupResult(templateSourceName, templateSource) : createNegativeResult(); }
return TemplateLookupResult.createNegativeResult();
return TemplateLookupResult.createNegativeResult();