/** * Set the correlationId pattern used to generate correlationIds. * * @param correlationIdPattern The pattern generator template. * @return This router instance. */ public BeanRouter setCorrelationIdPattern(final String correlationIdPattern) { this.correlationIdPattern = new FreeMarkerTemplate(correlationIdPattern); return this; }
public Object decode(String data) throws DataDecodeException { return new FreeMarkerTemplate(data); } }
public Object decode(String data) throws DataDecodeException { return new FreeMarkerTemplate(data); } }
public Object decode(String data) throws DataDecodeException { return new FreeMarkerTemplate(data); } }
public Object decode(String data) throws DataDecodeException { return new FreeMarkerTemplate(data); } }
public SetElementData setAttribute(QName name, String valueTemplate) { attributes.put(name, new FreeMarkerTemplate(valueTemplate)); return this; }
public SetElementData setAttribute(QName name, String valueTemplate) { attributes.put(name, new FreeMarkerTemplate(valueTemplate)); return this; }
public SetElementData setAttribute(QName name, String valueTemplate) { attributes.put(name, new FreeMarkerTemplate(valueTemplate)); return this; }
public SetElementData setAttribute(QName name, String valueTemplate) { attributes.put(name, new FreeMarkerTemplate(valueTemplate)); return this; }
/** * Generates a file name by delegating to {@link FreeMarkerTemplate } * * @param templateString - FreeMarker template * @param dataModel - FreeMarker data model * @throws NamingStrategyException * @throws TemplateException */ public String generateFileName(final String templateString, final Object dataModel) throws NamingStrategyException { FreeMarkerTemplate template = new FreeMarkerTemplate(templateString); return template.apply( dataModel ); }
/** * Generates a file name by delegating to {@link FreeMarkerTemplate } * * @param templateString - FreeMarker template * @param dataModel - FreeMarker data model * @throws NamingStrategyException strategy error */ public String generateFileName(final String templateString, final Object dataModel) throws NamingStrategyException { FreeMarkerTemplate template = new FreeMarkerTemplate(templateString); return template.apply( dataModel ); }
public ResultsetRowSelector setFailedSelectError(String failedSelectError) { AssertArgument.isNotNullAndNotEmpty(failedSelectError, "failedSelectError"); this.failedSelectError = new FreeMarkerTemplate(failedSelectError); return this; }
public ResultsetRowSelector setFailedSelectError(String failedSelectError) { AssertArgument.isNotNullAndNotEmpty(failedSelectError, "failedSelectError"); this.failedSelectError = new FreeMarkerTemplate(failedSelectError); return this; }
public void generate() throws IOException { Map<String, List<ClassConfig>> templatingContextObject = new HashMap<String, List<ClassConfig>>(); List<ClassConfig> classConfigs = new ArrayList<ClassConfig>(); FreeMarkerTemplate template; addClassConfig(classConfigs, rootBeanClass, null); template = new FreeMarkerTemplate("templates/bindingConfig.ftl.xml", getClass()); templatingContextObject.put("classConfigs", classConfigs); outputWriter.write(template.apply(templatingContextObject)); }
public void generate() throws IOException { Map<String, List<ClassConfig>> templatingContextObject = new HashMap<String, List<ClassConfig>>(); List<ClassConfig> classConfigs = new ArrayList<ClassConfig>(); FreeMarkerTemplate template; addClassConfig(classConfigs, rootBeanClass, null); template = new FreeMarkerTemplate("templates/bindingConfig.ftl.xml", getClass()); templatingContextObject.put("classConfigs", classConfigs); outputWriter.write(template.apply(templatingContextObject)); }
public void generate() throws IOException { Map<String, List<ClassConfig>> templatingContextObject = new HashMap<String, List<ClassConfig>>(); List<ClassConfig> classConfigs = new ArrayList<ClassConfig>(); FreeMarkerTemplate template; addClassConfig(classConfigs, rootBeanClass, null); template = new FreeMarkerTemplate("templates/bindingConfig.ftl.xml", getClass()); templatingContextObject.put("classConfigs", classConfigs); outputWriter.write(template.apply(templatingContextObject)); }
@Initialize public void initialize() throws IOException { String templateText = StreamUtils.readStreamAsString(getClass().getResourceAsStream("ScriptedGroovy.ftl")); classTemplate = new FreeMarkerTemplate(templateText); }
@Initialize public void initialize() throws IOException { String templateText = StreamUtils.readStreamAsString(getClass().getResourceAsStream("ScriptedGroovy.ftl")); classTemplate = new FreeMarkerTemplate(templateText); }
@Initialize public void initialize() throws IOException { String templateText = StreamUtils.readStreamAsString(getClass().getResourceAsStream("ScriptedGroovy.ftl")); classTemplate = new FreeMarkerTemplate(templateText); }
@Initialize public void intialize() throws SmooksConfigurationException { if(fileNamePattern == null) { throw new SmooksConfigurationException("Null 'fileNamePattern' configuration parameter."); } if(destinationDirectoryPattern == null) { throw new SmooksConfigurationException("Null 'destinationDirectoryPattern' configuration parameter."); } fileNameTemplate = new FreeMarkerTemplate(fileNamePattern); destinationDirectoryTemplate = new FreeMarkerTemplate(destinationDirectoryPattern); fileFilter = new SplitFilenameFilter(fileNamePattern); if(listFileNamePattern != null) { listFileNameTemplate = new FreeMarkerTemplate(listFileNamePattern); listFileNamePatternCtxKey = FileOutputStreamResource.class.getName() + "#" + listFileNamePattern; } }