1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.freemarker;
17
18 import org.springframework.beans.factory.InitializingBean;
19
20 import freemarker.core.InlineTemplateElement;
21
22
23
24
25
26
27 public class FreeMarkerInlineRenderBootstrap implements InitializingBean {
28
29
30
31
32
33
34 @Override
35 public void afterPropertiesSet() throws Exception {
36 InlineTemplateElement.registerAdaptor("script", new FreeMarkerScriptAdaptor());
37 InlineTemplateElement.registerAdaptor("template", new FreeMarkerTemplateAdaptor());
38 InlineTemplateElement.registerAdaptor("collectionGroup", new FreeMarkerCollectionGroupAdaptor());
39 InlineTemplateElement.registerAdaptor("stacked", new FreeMarkerStackedAdaptor());
40 InlineTemplateElement.registerAdaptor("groupWrap-open", new FreeMarkerOpenGroupWrapAdaptor());
41 InlineTemplateElement.registerAdaptor("groupWrap-close", new FreeMarkerCloseGroupWrapAdaptor());
42 }
43
44 }