# est-spi-annotation **Repository Path**: est-spi/annotation ## Basic Information - **Project Name**: est-spi-annotation - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-15 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # EST SPI Annotation [English Version](README.en.md) ## EST SPI 注解模块 est-spi-annotation 是 EST SPI 框架的核心注解定义模块,提供了服务提供接口(SPI)开发所需的全套注解。 ### 核心注解 #### @SPI - 标识服务提供接口 用于标记一个接口为服务提供接口。 ```java @SPI public interface MyService { void doSomething(); } ``` #### @SPIService - 标识服务实现 用于标记一个类为 SPI 服务的实现。 ```java @SPIService(MyService.class) public class MyServiceImpl implements MyService { public void doSomething() { // 实现逻辑 } } ``` #### @Priority - 优先级 用于指定服务实现的优先级,数值越大优先级越高。 ```java @Priority(100) @SPIService(MyService.class) public class HighPriorityImpl implements MyService { } ``` #### @Singleton - 单例 用于标记服务实现为单例模式。 ```java @Singleton @SPIService(MyService.class) public class SingletonImpl implements MyService { } ``` #### @Lazy - 延迟加载 用于标记服务实现为延迟加载。 ```java @Lazy @SPIService(MyService.class) public class LazyImpl implements MyService { } ``` #### @Named - 命名 用于给服务实现指定名称。 ```java @Named("myCustomService") @SPIService(MyService.class) public class NamedImpl implements MyService { } ``` ### Maven 依赖 ```xml ltd.idcu.est.spi est-spi-annotation 1.0.0 ``` ### 许可证 MIT License