diff --git a/src/main/java/xyz/zhouxy/plusone/commons/annotation/StaticFactoryMethod.java b/src/main/java/xyz/zhouxy/plusone/commons/annotation/StaticFactoryMethod.java new file mode 100644 index 0000000..d56e2f7 --- /dev/null +++ b/src/main/java/xyz/zhouxy/plusone/commons/annotation/StaticFactoryMethod.java @@ -0,0 +1,20 @@ +package xyz.zhouxy.plusone.commons.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * StaticFactoryMethod + * + *

标识方法为静态工厂方法 + * + * @author ZhouXY + * @since 1.0 + */ +@Target(ElementType.METHOD) +@Retention(RetentionPolicy.RUNTIME) +public @interface StaticFactoryMethod { + Class type(); +}