#191 extend delegate template to avoid duplicate mapper instantiation

This commit is contained in:
Christian Schuster 2014-04-04 21:18:11 +02:00
parent a8b153d980
commit 9711d5615e

View File

@ -19,8 +19,12 @@
--> -->
public ${name}() { public ${name}() {
this( new ${delegateName}() );
}
private ${name}( ${delegateName} delegate ) {
<#if invokeSuperConstructor> <#if invokeSuperConstructor>
super( new ${delegateName}() ); super( delegate );
</#if> </#if>
this.delegate = new ${delegateName}(); this.delegate = delegate;
} }