类 McpServerResource
java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.component.AbstractMcpServerComponent<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification>
com.github.codeboyzhou.mcp.declarative.server.component.McpServerResource
- 所有已实现的接口:
McpServerComponent<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification>
public class McpServerResource
extends AbstractMcpServerComponent<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification>
This class represents an MCP server resource component.
- 作者:
- codeboyzhou
-
字段概要
从类继承的字段 com.github.codeboyzhou.mcp.declarative.server.component.AbstractMcpServerComponent
injector, NOT_SPECIFIED -
构造器概要
构造器 -
方法概要
从类继承的方法 com.github.codeboyzhou.mcp.declarative.server.component.AbstractMcpServerComponent
resolveComponentAttributeValue
-
构造器详细资料
-
McpServerResource
public McpServerResource()
-
-
方法详细资料
-
create
public io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification create(Method method) 从接口复制的说明:McpServerComponentCreates an instance of the component for the specified method.- 参数:
method- the method for which to create an instance- 返回:
- an instance of the component for the specified method
-