Skip to content

Instantly share code, notes, and snippets.

@chkal
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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