com.github.linyuzai.plugin.autoconfigure.bean.BeanExtractor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of concept-plugin-spring-boot-starter Show documentation
Show all versions of concept-plugin-spring-boot-starter Show documentation
Dynamic loading classes with external jar simply and gracefully
The newest version!
package com.github.linyuzai.plugin.autoconfigure.bean;
import com.github.linyuzai.plugin.core.context.PluginContext;
import com.github.linyuzai.plugin.core.handle.extract.AbstractPluginExtractor;
import com.github.linyuzai.plugin.core.handle.extract.convert.PluginConvertor;
import com.github.linyuzai.plugin.core.handle.extract.match.PluginMatcher;
import com.github.linyuzai.plugin.core.type.NestedType;
import java.lang.annotation.Annotation;
/**
* Bean 提取器
*/
public abstract class BeanExtractor extends AbstractPluginExtractor {
@Override
public PluginMatcher getMatcher(NestedType type, Annotation[] annotations) {
return new BeanMatcher(type.toClass(), annotations);
}
@Override
public PluginConvertor getConvertor(NestedType type, Annotation[] annotations) {
return new BeanConvertor();
}
/**
* Bean 插件提取执行器工厂
*/
public static class InvokerFactory extends AbstractPluginExtractor.InvokerFactory {
@Override
protected AbstractPluginExtractor> createExtractor() {
return new BeanExtractor
© 2015 - 2024 Weber Informatics LLC | Privacy Policy