com.zusmart.basic.extension.Extension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zusmart-basic Show documentation
Show all versions of zusmart-basic Show documentation
基础模块,提供配置,日志,SPI,图排序,路径匹配,资源扫描,包扫描,常用工具类
package com.zusmart.basic.extension;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 扩展点标记注解,用来标记哪些接口是有扩展点, 如果使用再非接口上,则忽略
*
* @author Administrator
*
*/
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Extension {
/**
* 默认使用的扩展点名称
*
* @return 扩展名称
*/
public String value() default "";
public ExtensionScope scope() default ExtensionScope.Singleton;
}