Interface EndpointComponentFactory
public interface EndpointComponentFactory
Provides access to endpoint components loaded through
EndpointRuleSetExtensions.-
Method Summary
Modifier and TypeMethodDescriptionCreates aLibraryFunctionfactory function using the loaded function definitions.static EndpointComponentFactorycreateServiceFactory(ClassLoader classLoader) static EndpointComponentFactorycreateServiceFactory(Map<String, Parameter> builtIns, Map<String, FunctionDefinition> libraryFunctions, List<AuthSchemeValidator> authSchemeValidators) Gets loaded authentication scheme validators.Gets the built-in names as a joined string.booleanhasBuiltIn(String name) Returns true if a built-in of the provided name has been registered.
-
Method Details
-
hasBuiltIn
Returns true if a built-in of the provided name has been registered.- Parameters:
name- the name of the built-in to check for.- Returns:
- true if the built-in is present, false otherwise.
-
getKeyString
String getKeyString()Gets the built-in names as a joined string.- Returns:
- a string of the built-in names.
-
createFunctionFactory
Function<FunctionNode,Optional<LibraryFunction>> createFunctionFactory()Creates aLibraryFunctionfactory function using the loaded function definitions.- Returns:
- the created factory.
-
getAuthSchemeValidators
List<AuthSchemeValidator> getAuthSchemeValidators()Gets loaded authentication scheme validators.- Returns:
- a list of
AuthSchemeValidators.
-
createServiceFactory
static EndpointComponentFactory createServiceFactory(Map<String, Parameter> builtIns, Map<String, FunctionDefinition> libraryFunctions, List<AuthSchemeValidator> authSchemeValidators) -
createServiceFactory
-