Skip to content

Instantly share code, notes, and snippets.

@chkal
Last active August 29, 2015 14:18
Show Gist options
  • Save chkal/ba10a88a88db0091ddba to your computer and use it in GitHub Desktop.
Save chkal/ba10a88a88db0091ddba to your computer and use it in GitHub Desktop.
Customization of the configuration used by FreemarkerViewEngine
public class CustomConfigurationProducer extends DefaultConfigurationProducer {
@Override
@Specializes
@Produces
@ViewEngineConfig // <--- See my note in the mail
public Configuration getConfiguration() {
Configuration config = super.getConfiguration();
// do custom initialization here
return config;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment