org.springframework.beans.CachedIntrospectionResults Java Examples

The following examples show how to use org.springframework.beans.CachedIntrospectionResults. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpringApplication.java    From spring-javaformat with Apache License 2.0 5 votes vote down vote up
private void configureIgnoreBeanInfo(ConfigurableEnvironment environment) {
	if (System.getProperty(
			CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME) == null) {
		Boolean ignore = environment.getProperty("spring.beaninfo.ignore",
				Boolean.class, Boolean.TRUE);
		System.setProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME,
				ignore.toString());
	}
}
 
Example #2
Source File: ResetSpringStaticCaches.java    From HotswapAgent with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reset all caches.
 */
public static void reset() {
    resetTypeVariableCache();
    resetAnnotationUtilsCache();
    resetReflectionUtilsCache();
    resetResolvableTypeCache();
    resetPropetyCache();
    CachedIntrospectionResults.clearClassLoader(ResetSpringStaticCaches.class.getClassLoader());
}
 
Example #3
Source File: SpringProcessEngineTestCase.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Override
public void runBare() throws Throwable {
  testContextManager.prepareTestInstance(this); // this will initialize all dependencies
  try {
    super.runBare();
  }
  finally {
    testContextManager.afterTestClass();
    applicationContext.close();
    applicationContext = null;
    processEngine = null;
    testContextManager = null;
    CachedIntrospectionResults.clearClassLoader(getClass().getClassLoader());
  }
}
 
Example #4
Source File: IntrospectorCleanupListener.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public void contextInitialized(ServletContextEvent event) {
	CachedIntrospectionResults.acceptClassLoader(Thread.currentThread().getContextClassLoader());
}
 
Example #5
Source File: IntrospectorCleanupListener.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public void contextDestroyed(ServletContextEvent event) {
	CachedIntrospectionResults.clearClassLoader(Thread.currentThread().getContextClassLoader());
	Introspector.flushCaches();
}
 
Example #6
Source File: IntrospectorCleanupListener.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public void contextInitialized(ServletContextEvent event) {
	CachedIntrospectionResults.acceptClassLoader(Thread.currentThread().getContextClassLoader());
}
 
Example #7
Source File: IntrospectorCleanupListener.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public void contextDestroyed(ServletContextEvent event) {
	CachedIntrospectionResults.clearClassLoader(Thread.currentThread().getContextClassLoader());
	Introspector.flushCaches();
}
 
Example #8
Source File: IntrospectorCleanupListener.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void contextInitialized(ServletContextEvent event) {
	CachedIntrospectionResults.acceptClassLoader(Thread.currentThread().getContextClassLoader());
}
 
Example #9
Source File: IntrospectorCleanupListener.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void contextDestroyed(ServletContextEvent event) {
	CachedIntrospectionResults.clearClassLoader(Thread.currentThread().getContextClassLoader());
	Introspector.flushCaches();
}
 
Example #10
Source File: IntrospectorCleanupListener.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public void contextInitialized(ServletContextEvent event) {
	CachedIntrospectionResults.acceptClassLoader(Thread.currentThread().getContextClassLoader());
}
 
Example #11
Source File: IntrospectorCleanupListener.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public void contextDestroyed(ServletContextEvent event) {
	CachedIntrospectionResults.clearClassLoader(Thread.currentThread().getContextClassLoader());
	Introspector.flushCaches();
}
 
Example #12
Source File: AbstractApplicationContext.java    From spring-analysis-note with MIT License 3 votes vote down vote up
/**
 * Reset Spring's common reflection metadata caches, in particular the
 * {@link ReflectionUtils}, {@link AnnotationUtils}, {@link ResolvableType}
 * and {@link CachedIntrospectionResults} caches.
 * @since 4.2
 * @see ReflectionUtils#clearCache()
 * @see AnnotationUtils#clearCache()
 * @see ResolvableType#clearCache()
 * @see CachedIntrospectionResults#clearClassLoader(ClassLoader)
 */
protected void resetCommonCaches() {
	ReflectionUtils.clearCache();
	AnnotationUtils.clearCache();
	ResolvableType.clearCache();
	CachedIntrospectionResults.clearClassLoader(getClassLoader());
}
 
Example #13
Source File: AbstractApplicationContext.java    From java-technology-stack with MIT License 3 votes vote down vote up
/**
 * Reset Spring's common reflection metadata caches, in particular the
 * {@link ReflectionUtils}, {@link AnnotationUtils}, {@link ResolvableType}
 * and {@link CachedIntrospectionResults} caches.
 * @since 4.2
 * @see ReflectionUtils#clearCache()
 * @see AnnotationUtils#clearCache()
 * @see ResolvableType#clearCache()
 * @see CachedIntrospectionResults#clearClassLoader(ClassLoader)
 */
protected void resetCommonCaches() {
	ReflectionUtils.clearCache();
	AnnotationUtils.clearCache();
	ResolvableType.clearCache();
	CachedIntrospectionResults.clearClassLoader(getClassLoader());
}
 
Example #14
Source File: AbstractApplicationContext.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Reset Spring's common core caches, in particular the {@link ReflectionUtils},
 * {@link ResolvableType} and {@link CachedIntrospectionResults} caches.
 * @since 4.2
 * @see ReflectionUtils#clearCache()
 * @see ResolvableType#clearCache()
 * @see CachedIntrospectionResults#clearClassLoader(ClassLoader)
 */
protected void resetCommonCaches() {
	ReflectionUtils.clearCache();
	ResolvableType.clearCache();
	CachedIntrospectionResults.clearClassLoader(getClassLoader());
}
 
Example #15
Source File: AbstractApplicationContext.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Reset Spring's common core caches, in particular the {@link ReflectionUtils},
 * {@link ResolvableType} and {@link CachedIntrospectionResults} caches.
 * @since 4.2
 * @see ReflectionUtils#clearCache()
 * @see ResolvableType#clearCache()
 * @see CachedIntrospectionResults#clearClassLoader(ClassLoader)
 */
protected void resetCommonCaches() {
	ReflectionUtils.clearCache();
	ResolvableType.clearCache();
	CachedIntrospectionResults.clearClassLoader(getClassLoader());
}