• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alibaba / jetcache / #405

16 Apr 2024 05:58AM UTC coverage: 0.0% (-88.9%) from 88.866%
#405

push

areyouok
add encoding to fix coverage report

0 of 5353 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/jetcache-anno/src/main/java/com/alicp/jetcache/anno/config/ConfigSelector.java
1
package com.alicp.jetcache.anno.config;
2

3
import org.springframework.context.annotation.AdviceMode;
4
import org.springframework.context.annotation.AdviceModeImportSelector;
5
import org.springframework.context.annotation.AutoProxyRegistrar;
6

7
import java.util.ArrayList;
8
import java.util.List;
9

10
/**
11
 * Created on 2016/11/16.
12
 *
13
 */
14
public class ConfigSelector extends AdviceModeImportSelector<EnableMethodCache> {
×
15

16
    @Override
17
    public String[] selectImports(AdviceMode adviceMode) {
18
        switch (adviceMode) {
×
19
            case PROXY:
20
                return getProxyImports();
×
21
            case ASPECTJ:
22
//                return getAspectJImports();
23
            default:
24
                return null;
×
25
        }
26
    }
27

28
    /**
29
     * Return the imports to use if the {@link AdviceMode} is set to {@link AdviceMode#PROXY}.
30
     * <p>Take care of adding the necessary JSR-107 import if it is available.
31
     */
32
    private String[] getProxyImports() {
33
        List<String> result = new ArrayList<String>();
×
34
        result.add(AutoProxyRegistrar.class.getName());
×
35
        result.add(JetCacheProxyConfiguration.class.getName());
×
36
        return result.toArray(new String[result.size()]);
×
37
    }
38

39
    /**
40
     * Return the imports to use if the {@link AdviceMode} is set to {@link AdviceMode#ASPECTJ}.
41
     * <p>Take care of adding the necessary JSR-107 import if it is available.
42
     */
43
//    private String[] getAspectJImports() {
44
//        List<String> result = new ArrayList<String>();
45
//        result.add(CACHE_ASPECT_CONFIGURATION_CLASS_NAME);
46
//        return result.toArray(new String[result.size()]);
47
//    }
48
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc