类 GuiceInjectorModule
java.lang.Object
com.google.inject.AbstractModule
com.github.codeboyzhou.mcp.declarative.di.GuiceInjectorModule
- 所有已实现的接口:
com.google.inject.Module
public final class GuiceInjectorModule
extends com.google.inject.AbstractModule
This class is a Guice module that configures bindings for classes annotated with
McpServerApplication, McpResource, McpPrompt, and McpTool.- 作者:
- codeboyzhou
-
构造器概要
构造器构造器说明GuiceInjectorModule(Class<?> mainClass) Constructs a newGuiceInjectorModulewith the specified main class. -
方法概要
修饰符和类型方法说明protected voidorg.reflections.ReflectionsProvides aReflectionsinstance for the main class.Provides aResourceBundleinstance for the main class.从类继承的方法 com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
构造器详细资料
-
GuiceInjectorModule
Constructs a newGuiceInjectorModulewith the specified main class.- 参数:
mainClass- the main class to use for configuration
-
-
方法详细资料
-
configure
protected void configure()- 覆盖:
configure在类中com.google.inject.AbstractModule
-
provideReflections
@Provides public org.reflections.Reflections provideReflections()Provides aReflectionsinstance for the main class.- 返回:
- a
Reflectionsinstance for the main class
-
provideResourceBundle
Provides aResourceBundleinstance for the main class.- 返回:
- a
ResourceBundleinstance for the main class
-