Java Code Examples for javax.cache.annotation.CacheDefaults#cacheResolverFactory()
The following examples show how to use
javax.cache.annotation.CacheDefaults#cacheResolverFactory() .
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: CDIJCacheHelper.java From commons-jcs with Apache License 2.0 | 6 votes |
private CacheResolverFactory cacheResolverFactoryFor(final CacheDefaults defaults, final Class<? extends CacheResolverFactory> cacheResolverFactory) { if (!CacheResolverFactory.class.equals(cacheResolverFactory)) { return instance(cacheResolverFactory); } if (defaults != null) { final Class<? extends CacheResolverFactory> defaultCacheResolverFactory = defaults.cacheResolverFactory(); if (!CacheResolverFactory.class.equals(defaultCacheResolverFactory)) { return instance(defaultCacheResolverFactory); } } return defaultCacheResolverFactory(); }
Example 2
Source File: AnnotationJCacheOperationSource.java From spring-analysis-note with MIT License | 5 votes |
@Nullable protected CacheResolverFactory determineCacheResolverFactory( @Nullable CacheDefaults defaults, Class<? extends CacheResolverFactory> candidate) { if (candidate != CacheResolverFactory.class) { return getBean(candidate); } else if (defaults != null && defaults.cacheResolverFactory() != CacheResolverFactory.class) { return getBean(defaults.cacheResolverFactory()); } else { return null; } }
Example 3
Source File: AnnotationJCacheOperationSource.java From java-technology-stack with MIT License | 5 votes |
@Nullable protected CacheResolverFactory determineCacheResolverFactory( @Nullable CacheDefaults defaults, Class<? extends CacheResolverFactory> candidate) { if (candidate != CacheResolverFactory.class) { return getBean(candidate); } else if (defaults != null && defaults.cacheResolverFactory() != CacheResolverFactory.class) { return getBean(defaults.cacheResolverFactory()); } else { return null; } }
Example 4
Source File: AnnotationJCacheOperationSource.java From lams with GNU General Public License v2.0 | 5 votes |
protected CacheResolverFactory determineCacheResolverFactory(CacheDefaults defaults, Class<? extends CacheResolverFactory> candidate) { if (CacheResolverFactory.class != candidate) { return getBean(candidate); } else if (defaults != null && CacheResolverFactory.class != defaults.cacheResolverFactory()) { return getBean(defaults.cacheResolverFactory()); } else { return null; } }
Example 5
Source File: AnnotationJCacheOperationSource.java From spring4-understanding with Apache License 2.0 | 5 votes |
protected CacheResolverFactory determineCacheResolverFactory(CacheDefaults defaults, Class<? extends CacheResolverFactory> candidate) { if (CacheResolverFactory.class != candidate) { return getBean(candidate); } else if (defaults != null && CacheResolverFactory.class != defaults.cacheResolverFactory()) { return getBean(defaults.cacheResolverFactory()); } else { return null; } }