From ef65a583b1c888f5d2560e92414a21c1a2eaa04c Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Sat, 15 Apr 2023 13:43:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20StaticFactoryMethod=20?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../annotation/StaticFactoryMethod.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/java/xyz/zhouxy/plusone/commons/annotation/StaticFactoryMethod.java 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(); +}