#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}() {
<#if invokeSuperConstructor>
super( new ${delegateName}() );
</#if>
this.delegate = new ${delegateName}();
this( new ${delegateName}() );
}
private ${name}( ${delegateName} delegate ) {
<#if invokeSuperConstructor>
super( delegate );
</#if>
this.delegate = delegate;
}