Example usage for org.springframework.beans CachedIntrospectionResults IGNORE_BEANINFO_PROPERTY_NAME

List of usage examples for org.springframework.beans CachedIntrospectionResults IGNORE_BEANINFO_PROPERTY_NAME

Introduction

In this page you can find the example usage for org.springframework.beans CachedIntrospectionResults IGNORE_BEANINFO_PROPERTY_NAME.

Prototype

String IGNORE_BEANINFO_PROPERTY_NAME

To view the source code for org.springframework.beans CachedIntrospectionResults IGNORE_BEANINFO_PROPERTY_NAME.

Click Source Link

Document

System property that instructs Spring to use the Introspector#IGNORE_ALL_BEANINFO mode when calling the JavaBeans Introspector : "spring.beaninfo.ignore", with a value of "true" skipping the search for BeanInfo classes (typically for scenarios where no such classes are being defined for beans in the application in the first place).

Usage

From source file:org.springframework.boot.context.config.ConfigFileApplicationListener.java

private void configureIgnoreBeanInfo(ConfigurableEnvironment environment) {
    if (System.getProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME) == null) {
        RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(environment, "spring.beaninfo.");
        Boolean ignore = resolver.getProperty("ignore", Boolean.class, Boolean.TRUE);
        System.setProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME, ignore.toString());
    }/*from  w  ww. ja  va2  s  .c o  m*/
}