/** * Corresponds to {@link BeansWrapper#clearClassIntrospecitonCache()}. * * @since 2.3.20 */ void clearCache() { if (getHasSharedInstanceRestrictons()) { throw new IllegalStateException( "It's not allowed to clear the whole cache in a read-only " + this.getClass().getName() + "instance. Use removeFromClassIntrospectionCache(String prefix) instead."); } forcedClearCache(); }
private void onSameNameClassesDetected(String className) { // TODO: This behavior should be pluggable, as in environments where // some classes are often reloaded or multiple versions of the // same class is normal (OSGi), this will drop the cache contents // too often. if (LOG.isInfoEnabled()) { LOG.info( "Detected multiple classes with the same name, \"" + className + "\". Assuming it was a class-reloading. Clearing class introspection " + "caches to release old data."); } forcedClearCache(); }
/** * Corresponds to {@link BeansWrapper#clearClassIntrospecitonCache()}. * * @since 2.3.20 */ void clearCache() { if (getHasSharedInstanceRestrictons()) { throw new IllegalStateException( "It's not allowed to clear the whole cache in a read-only " + this.getClass().getName() + "instance. Use removeFromClassIntrospectionCache(String prefix) instead."); } forcedClearCache(); }
/** * Corresponds to {@link BeansWrapper#clearClassIntrospecitonCache()}. * * @since 2.3.20 */ void clearCache() { if (getHasSharedInstanceRestrictons()) { throw new IllegalStateException( "It's not allowed to clear the whole cache in a read-only " + this.getClass().getName() + "instance. Use removeFromClassIntrospectionCache(String prefix) instead."); } forcedClearCache(); }
private void onSameNameClassesDetected(String className) { // TODO: This behavior should be pluggable, as in environments where // some classes are often reloaded or multiple versions of the // same class is normal (OSGi), this will drop the cache contents // too often. if (LOG.isInfoEnabled()) { LOG.info( "Detected multiple classes with the same name, \"" + className + "\". Assuming it was a class-reloading. Clearing class introspection " + "caches to release old data."); } forcedClearCache(); }
private void onSameNameClassesDetected(String className) { // TODO: This behavior should be pluggable, as in environments where // some classes are often reloaded or multiple versions of the // same class is normal (OSGi), this will drop the cache contents // too often. if (LOG.isInfoEnabled()) { LOG.info( "Detected multiple classes with the same name, \"" + className + "\". Assuming it was a class-reloading. Clearing class introspection " + "caches to release old data."); } forcedClearCache(); }