@Override public TemplateConfiguration get(String sourceName, Object templateSource) throws IOException, TemplateConfigurationFactoryException { for (TemplateConfigurationFactory tcf : templateConfigurationFactories) { TemplateConfiguration tc = tcf.get(sourceName, templateSource); if (tc != null) { return tc; } } if (!allowNoMatch) { throw new TemplateConfigurationFactoryException( FirstMatchTemplateConfigurationFactory.class.getSimpleName() + " has found no matching choice for source name " + StringUtil.jQuote(sourceName) + ". " + (noMatchErrorDetails != null ? "Error details: " + noMatchErrorDetails : "(Set the noMatchErrorDetails property of the factory bean to give a more specific error " + "message. Set allowNoMatch to true if this shouldn't be an error.)")); } return null; }
@Override public TemplateConfiguration get(String sourceName, Object templateSource) throws IOException, TemplateConfigurationFactoryException { for (TemplateConfigurationFactory tcf : templateConfigurationFactories) { TemplateConfiguration tc = tcf.get(sourceName, templateSource); if (tc != null) { return tc; } } if (!allowNoMatch) { throw new TemplateConfigurationFactoryException( FirstMatchTemplateConfigurationFactory.class.getSimpleName() + " has found no matching choice for source name " + StringUtil.jQuote(sourceName) + ". " + (noMatchErrorDetails != null ? "Error details: " + noMatchErrorDetails : "(Set the noMatchErrorDetails property of the factory bean to give a more specific error " + "message. Set allowNoMatch to true if this shouldn't be an error.)")); } return null; }
@Override public TemplateConfiguration get(String sourceName, Object templateSource) throws IOException, TemplateConfigurationFactoryException { for (TemplateConfigurationFactory tcf : templateConfigurationFactories) { TemplateConfiguration tc = tcf.get(sourceName, templateSource); if (tc != null) { return tc; } } if (!allowNoMatch) { throw new TemplateConfigurationFactoryException( FirstMatchTemplateConfigurationFactory.class.getSimpleName() + " has found no matching choice for source name " + StringUtil.jQuote(sourceName) + ". " + (noMatchErrorDetails != null ? "Error details: " + noMatchErrorDetails : "(Set the noMatchErrorDetails property of the factory bean to give a more specific error " + "message. Set allowNoMatch to true if this shouldn't be an error.)")); } return null; }