Class AbstractMcpToolListChangedMethodCallback.AbstractBuilder<T extends AbstractMcpToolListChangedMethodCallback.AbstractBuilder<T,R>,R>
java.lang.Object
org.springaicommunity.mcp.method.changed.tool.AbstractMcpToolListChangedMethodCallback.AbstractBuilder<T,R>
- Type Parameters:
T- The type of the builderR- The type of the callback
- Direct Known Subclasses:
AsyncMcpToolListChangedMethodCallback.Builder,SyncMcpToolListChangedMethodCallback.Builder
- Enclosing class:
- AbstractMcpToolListChangedMethodCallback
protected abstract static class AbstractMcpToolListChangedMethodCallback.AbstractBuilder<T extends AbstractMcpToolListChangedMethodCallback.AbstractBuilder<T,R>,R>
extends Object
Abstract builder for creating McpToolListChangedMethodCallback instances.
This builder provides a base for constructing callback instances with the required parameters.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the bean instance that contains the method.abstract Rbuild()Build the callback.Set the method to create a callback for.toolListChanged(McpToolListChanged toolListChanged) Set the tool list changed annotation.protected voidvalidate()Validate the builder state.
-
Field Details
-
method
-
bean
-
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder()
-
-
Method Details
-
method
Set the method to create a callback for.- Parameters:
method- The method to create a callback for- Returns:
- This builder
-
bean
Set the bean instance that contains the method.- Parameters:
bean- The bean instance- Returns:
- This builder
-
toolListChanged
Set the tool list changed annotation.- Parameters:
toolListChanged- The tool list changed annotation- Returns:
- This builder
-
validate
protected void validate()Validate the builder state.- Throws:
IllegalArgumentException- if the builder state is invalid
-
build
Build the callback.- Returns:
- A new callback instance
-