• 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/support/DefaultSpringKeyConvertorParser.java
1
/**
2
 * Created on 2019/6/7.
3
 */
4
package com.alicp.jetcache.anno.support;
5

6
import com.alicp.jetcache.CacheConfigException;
7
import com.alicp.jetcache.anno.KeyConvertor;
8
import com.alicp.jetcache.support.FastjsonKeyConvertor;
9
import org.springframework.beans.BeansException;
10
import org.springframework.context.ApplicationContext;
11
import org.springframework.context.ApplicationContextAware;
12

13
import java.util.function.Function;
14

15
/**
16
 * @author huangli
17
 */
18
public class DefaultSpringKeyConvertorParser extends DefaultKeyConvertorParser implements ApplicationContextAware {
×
19

20
    private ApplicationContext applicationContext;
21

22
    @Override
23
    public Function<Object, Object> parseKeyConvertor(String convertor) {
24
        String beanName = DefaultSpringEncoderParser.parseBeanName(convertor);
×
25
        if (beanName == null) {
×
26
            return super.parseKeyConvertor(convertor);
×
27
        } else {
28
            return (Function<Object, Object>) applicationContext.getBean(beanName);
×
29
        }
30
    }
31

32
    @Override
33
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
34
        this.applicationContext = applicationContext;
×
35
    }
×
36
}
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

© 2025 Coveralls, Inc