Interface TlsManagerProvider
- All Superinterfaces:
ConfiguredProvider<TlsManager>
ServiceLoader service provider for TlsManager.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T> TlsManagergetOrCreate(T configBean, Function<T, TlsManager> creator) Provides the ability to have a uniqueTlsManagerper uniqueConfiginstance provided.Methods inherited from interface ConfiguredProvider
configKey, create, createModifier and TypeMethodDescriptionKey this service implementation is stored under.Create a new instance from the configuration located on the provided node.default TlsManagercreate(Config config, String name, ServiceRegistry serviceRegistry) Create a new instance from configuration using services from the registry which owns the configured instance.
-
Method Details
-
getOrCreate
Provides the ability to have a uniqueTlsManagerper uniqueConfiginstance provided.- Type Parameters:
T- the type of the config bean- Parameters:
configBean- the config bean instancecreator- the creator to apply if not already in cache, which takes the config bean instance- Returns:
- the tls manager instance from cache, defaulting to creation from the
creatorif not in cache
-