类 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
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final String
    The name of the injected variable for i18n enabled.
  • 构造器概要

    构造器
    构造器
    说明
    GuiceInjectorModule(Class<?> mainClass)
    Constructs a new GuiceInjectorModule with the specified main class.
  • 方法概要

    修饰符和类型
    方法
    说明
    protected void
     
    org.reflections.Reflections
    Provides a Reflections instance 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

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • INJECTED_VARIABLE_NAME_I18N_ENABLED

      public static final String INJECTED_VARIABLE_NAME_I18N_ENABLED
      The name of the injected variable for i18n enabled.
      另请参阅:
  • 构造器详细资料

    • GuiceInjectorModule

      public GuiceInjectorModule(Class<?> mainClass)
      Constructs a new GuiceInjectorModule with 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 a Reflections instance for the main class.
      返回:
      a Reflections instance for the main class