类 AbstractMcpServerComponent<T>
java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.component.AbstractMcpServerComponent<T>
- 类型参数:
T- the type of the component
- 所有已实现的接口:
McpServerComponent<T>
- 直接已知子类:
McpServerPrompt,McpServerResource,McpServerTool
This abstract class represents an MCP server component (resource/prompt/tool) that is responsible
for creating instances of a specific type
T for a given method, and provides common
functionality for all MCP server components.- 作者:
- codeboyzhou
-
字段概要
字段修饰符和类型字段说明protected final DependencyInjectorThe dependency injector to use for injecting component attributes.protected static final StringThe default value to use when a component attribute is not specified. -
构造器概要
构造器限定符构造器说明protectedCreates a new instance ofAbstractMcpServerComponent. -
方法概要
修饰符和类型方法说明protected StringresolveComponentAttributeValue(String attributeLiteralValue) Resolves the value of a component attribute, using the resource bundle for localization if i18n is enabled.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.github.codeboyzhou.mcp.declarative.server.component.McpServerComponent
create
-
字段详细资料
-
NOT_SPECIFIED
The default value to use when a component attribute is not specified.- 另请参阅:
-
injector
The dependency injector to use for injecting component attributes.
-
-
构造器详细资料
-
AbstractMcpServerComponent
protected AbstractMcpServerComponent()Creates a new instance ofAbstractMcpServerComponent.
-
-
方法详细资料
-
resolveComponentAttributeValue
Resolves the value of a component attribute, using the resource bundle for localization if i18n is enabled.- 参数:
attributeLiteralValue- the literal value of the component attribute- 返回:
- the resolved value of the component attribute
-