| Total Complexity | 4 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package io.mcarle.sciurus.cache; |
||
| 3 | public class SimpleCacheSupplier implements CacheSupplier { |
||
| 4 | |||
| 5 | private final CustomCache cache; |
||
| 6 | |||
| 7 | 1 | public SimpleCacheSupplier(final CustomCache cache) { |
|
| 8 | 1 | this.cache = cache; |
|
| 9 | 1 | } |
|
| 10 | |||
| 11 | @Override |
||
| 12 | public CustomCache get() { |
||
| 13 | 1 | return cache; |
|
| 14 | } |
||
| 15 | |||
| 16 | @Override |
||
| 17 | public void preRegister() { |
||
| 18 | 1 | cache.preRegister(); |
|
| 19 | 1 | } |
|
| 20 | |||
| 21 | @Override |
||
| 22 | public void postDeregister() { |
||
| 23 | 1 | cache.postDeregister(); |
|
| 24 | 1 | } |
|
| 26 |