- 
                Notifications
    
You must be signed in to change notification settings  - Fork 78
 
Closed
Labels
type: documentationA documentation updateA documentation update
Milestone
Description
@RunWith(SpringRunner.class)
@SpringBootTest
public class PersonRepositoryIntegrationTest {
  static final class MapKeyValueAdapterExt extends MapKeyValueAdapter {
    MapKeyValueAdapterExt(Class<? extends Map> mapType) {
      super(mapType);
    }
    @Override
    public Object get(Object id, String keyspace) {
      System.out.println(keyspace + ":" + id);
      return super.get(id, keyspace);
    }
  }
  @SpringBootApplication
  @EnableMapRepositories
  static class Config {
    @Bean
    public KeyValueOperations keyValueTemplate() {
      return new KeyValueTemplate(keyValueAdapter());
    }
    @Bean
    public KeyValueAdapter keyValueAdapter() {
      return new MapKeyValueAdapterExt(ConcurrentHashMap.class);
    }
  }
// ...
}
MapKeyValueAdapterExt#get(Object, String) will not be called.
Metadata
Metadata
Assignees
Labels
type: documentationA documentation updateA documentation update