@Test public void verifyTypeIsList() { assertTrue(cut.verifyTypeIsList(List.class)); assertTrue(cut.verifyTypeIsList(ArrayList.class)); assertTrue(cut.verifyTypeIsList(LinkedList.class)); assertTrue(cut.verifyTypeIsList(ArrayList.class)); assertFalse(cut.verifyTypeIsList(Integer.class)); assertFalse(cut.verifyTypeIsList(Collection.class)); assertFalse(cut.verifyTypeIsList(Map.class)); assertFalse(cut.verifyTypeIsList(Set.class)); }
protected boolean verifyTypeIsList(final Class<?> clazz) { return List.class.isAssignableFrom(clazz); }
CacheBase implements ApplicationContextAware, InitializingBean { protected boolean verifyTypeIsList(final Class<?> clazz) { return List.class.isAssignableFrom(clazz); } }
CacheBase implements ApplicationContextAware, InitializingBean { protected boolean verifyTypeIsList(final Class<?> clazz) { return List.class.isAssignableFrom(clazz); }  }
CacheBase implements ApplicationContextAware, InitializingBean { protected boolean verifyTypeIsList(final Class<?> clazz) { return List.class.isAssignableFrom(clazz); }  @Override void afterPropertiesSet(); @Override void setApplicationContext(final ApplicationContext applicationContext); void setCacheKeyBuilder(final CacheKeyBuilder cacheKeyBuilder); CacheKeyBuilder getCacheKeyBuilder(); BridgeMethodMappingStore getBridgeMethodMappingStore(); void setBridgeMethodMappingStore(final BridgeMethodMappingStore bridgeMethodMappingStore); Cache getCache(final AnnotationData data); boolean isCacheDisabled(); Method getMethodToCache(final JoinPoint jp, final Class<T> annotationClass); @SuppressWarnings("unchecked") T getUpdateData(final AnnotationData data, final Method method, final Object[] args, final Object returnValue); }
CacheBase implements ApplicationContextAware, InitializingBean { protected boolean verifyTypeIsList(final Class<?> clazz) { return List.class.isAssignableFrom(clazz); }  @Override void afterPropertiesSet(); @Override void setApplicationContext(final ApplicationContext applicationContext); void setCacheKeyBuilder(final CacheKeyBuilder cacheKeyBuilder); CacheKeyBuilder getCacheKeyBuilder(); BridgeMethodMappingStore getBridgeMethodMappingStore(); void setBridgeMethodMappingStore(final BridgeMethodMappingStore bridgeMethodMappingStore); Cache getCache(final AnnotationData data); boolean isCacheDisabled(); Method getMethodToCache(final JoinPoint jp, final Class<T> annotationClass); @SuppressWarnings("unchecked") T getUpdateData(final AnnotationData data, final Method method, final Object[] args, final Object returnValue); static final String DISABLE_CACHE_PROPERTY; }