Tabnine Logo
FreeMarkerView.obtainApplicationContext
Code IndexAdd Tabnine to your IDE (free)

How to use
obtainApplicationContext
method
in
org.springframework.web.reactive.result.view.freemarker.FreeMarkerView

Best Java code snippets using org.springframework.web.reactive.result.view.freemarker.FreeMarkerView.obtainApplicationContext (Showing top 1 results out of 315)

origin: spring-projects/spring-framework

/**
 * Autodetect a {@link FreeMarkerConfig} object via the ApplicationContext.
 * @return the Configuration instance to use for FreeMarkerViews
 * @throws BeansException if no Configuration instance could be found
 * @see #setConfiguration
 */
protected FreeMarkerConfig autodetectConfiguration() throws BeansException {
  try {
    return BeanFactoryUtils.beanOfTypeIncludingAncestors(
        obtainApplicationContext(), FreeMarkerConfig.class, true, false);
  }
  catch (NoSuchBeanDefinitionException ex) {
    throw new ApplicationContextException(
        "Must define a single FreeMarkerConfig bean in this web application context " +
            "(may be inherited): FreeMarkerConfigurer is the usual implementation. " +
            "This bean may be given any name.", ex);
  }
}
org.springframework.web.reactive.result.view.freemarkerFreeMarkerViewobtainApplicationContext

Popular methods of FreeMarkerView

  • setConfiguration
    Set the FreeMarker Configuration to be used by this view.Typically this property is not set directly
  • autodetectConfiguration
    Autodetect a FreeMarkerConfig object via the ApplicationContext.
  • getCharset
  • getConfiguration
    Return the FreeMarker configuration used by this view.
  • getDefaultCharset
  • getEncoding
    Return the encoding for the FreeMarker template.
  • getObjectWrapper
    Return the configured FreeMarker ObjectWrapper, or the ObjectWrapper#DEFAULT_WRAPPER if none specifi
  • getTemplate
    Retrieve the FreeMarker template for the given locale, to be rendering by this view.By default, the
  • getTemplateModel
    Build a FreeMarker template model for the given model Map.The default implementation builds a Simple
  • getUrl
  • <init>
  • afterPropertiesSet
  • <init>,
  • afterPropertiesSet,
  • checkResourceExists,
  • getApplicationContext,
  • obtainConfiguration,
  • render,
  • setApplicationContext,
  • setUrl

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Path (java.nio.file)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now