Advisor driven by a {@link FlushingModelSource} that tells {@link NameMatchFlushingInterceptor} which methods should be intercepted.
{@link FlushingModelSource}
{@link NameMatchFlushingInterceptor}
9899100101102103104105106107108
ProxyFactory proxyFactory = new ProxyFactory(); proxyFactory.addAdvisor(new CachingModelSourceAdvisor(cachingInterceptor)); if (hasFlushingModels) { proxyFactory.addAdvisor(new FlushingModelSourceAdvisor( flushingInterceptor)); } proxyFactory.copyFrom(this);