Interface EndpointComponentFactory
-
public interface EndpointComponentFactory
Provides access to endpoint components loaded throughEndpointRuleSetExtension
s.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.function.Function<FunctionNode,java.util.Optional<LibraryFunction>>
createFunctionFactory()
Creates aLibraryFunction
factory function using the loaded function definitions.static EndpointComponentFactory
createServiceFactory(java.lang.ClassLoader classLoader)
static EndpointComponentFactory
createServiceFactory(java.util.Map<java.lang.String,Parameter> builtIns, java.util.Map<java.lang.String,FunctionDefinition> libraryFunctions, java.util.List<AuthSchemeValidator> authSchemeValidators)
java.util.List<AuthSchemeValidator>
getAuthSchemeValidators()
Gets loaded authentication scheme validators.java.lang.String
getKeyString()
Gets the built-in names as a joined string.boolean
hasBuiltIn(java.lang.String name)
Returns true if a built-in of the provided name has been registered.
-
-
-
Method Detail
-
hasBuiltIn
boolean hasBuiltIn(java.lang.String name)
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
java.lang.String getKeyString()
Gets the built-in names as a joined string.- Returns:
- a string of the built-in names.
-
createFunctionFactory
java.util.function.Function<FunctionNode,java.util.Optional<LibraryFunction>> createFunctionFactory()
Creates aLibraryFunction
factory function using the loaded function definitions.- Returns:
- the created factory.
-
getAuthSchemeValidators
java.util.List<AuthSchemeValidator> getAuthSchemeValidators()
Gets loaded authentication scheme validators.- Returns:
- a list of
AuthSchemeValidator
s.
-
createServiceFactory
static EndpointComponentFactory createServiceFactory(java.util.Map<java.lang.String,Parameter> builtIns, java.util.Map<java.lang.String,FunctionDefinition> libraryFunctions, java.util.List<AuthSchemeValidator> authSchemeValidators)
-
createServiceFactory
static EndpointComponentFactory createServiceFactory(java.lang.ClassLoader classLoader)
-
-