Created
April 1, 2015 15:39
-
-
Save chkal/bbcb6e1f3d0a463da856 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This will result in an additional ViewEngine. The priority ensures | |
* that this implementation is preferred. | |
*/ | |
@Priority(1000) | |
public class AdditionalViewEngine extends FreemarkerViewEngine { | |
@Override | |
protected Configuration buildConfiguration() { | |
Configuration config = super.buildConfiguration(); | |
// customize here | |
return config; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This ViewEngine implementation will replace the existing FreemarkerViewEngine. | |
*/ | |
@Specializes | |
public class SpecializingViewEngine extends FreemarkerViewEngine { | |
@Override | |
protected Configuration buildConfiguration() { | |
Configuration config = super.buildConfiguration(); | |
// customize here | |
return config; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment