-
Notifications
You must be signed in to change notification settings - Fork 0
/
jcg-generator.xml
31 lines (28 loc) · 1.25 KB
/
jcg-generator.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="typeSerializer" class="de.steinacker.jcg.generator.VelocityTypeSerializer">
<property name="templates">
<set>
<value>/templates/type/class.vm</value>
<value>/templates/type/interface.vm</value>
</set>
</property>
<property name="templateSelector">
<bean class="de.steinacker.jcg.generator.TypeKindTemplateSelector" />
</property>
</bean>
<bean id="generator" class="de.steinacker.jcg.generator.GeneratorChain">
<constructor-arg>
<list>
<bean class="de.steinacker.jcg.generator.ConsoleGenerator">
<property name="serializer" ref="typeSerializer" />
</bean>
<bean class="de.steinacker.jcg.generator.FileGenerator">
<property name="serializer" ref="typeSerializer" />
</bean>
</list>
</constructor-arg>
</bean>
</beans>