| com.metaboss.sdlctools.services.jdktools.BSJamonTemplateProcessor
All known Subclasses: com.metaboss.sdlctools.services.jdktools.impl.BSJamonTemplateProcessorImpl,
BSJamonTemplateProcessor | public interface BSJamonTemplateProcessor (Code) | | This component provides Jamon template processing service.
Jamon is an Open Source text template engine for Java.
See Jamon Web Site for more information on Jamon.
|
COMPONENT_URL | final public static String COMPONENT_URL(Code) | | Naming URL of the component
|
mergeTemplate | public MergeResult mergeTemplate(String pSourceTemplate, String pSourceTemplateName, java.util.Map pContextMap) throws BSException(Code) | | Merges given template with given set of properties.
Parameters: pSourceTemplate - the buffer with template text in it. Note that the template source must notuse <%args> construct to specify arguments. This is because the template argument specification isfixed and constructed automatically as follows:<%args>com.metaboss.javatemplate.JavaTemplateContext pContext;</%args> This is done to keep Jamon templates in line with other types of templates (Java and Velocity). Parameters: pSourceTemplateName - the unique name of the template - used in logging, may also be used incaching, so the caller must make sure that the same template always has exact same name. Namecan be supplied with java style package separators (e.g. metaboss.generation.CodeTemplate) Parameters: pContextMap - the context map to pass to the template processor. This context map willbe supplied to the Jamon template as com.metaboss.javatemplate.JavaTemplateContext pContext argument. MergeResult contains the result of the requested operation |
|
|