Class DefaultInformerNamespaceResolver
java.lang.Object
io.micronaut.kubernetes.client.informer.resolvers.DefaultInformerNamespaceResolver
- All Implemented Interfaces:
InformerNamespaceResolver
@Singleton
public class DefaultInformerNamespaceResolver
extends Object
implements InformerNamespaceResolver
The default implementation of
InformerNamespaceResolver
.- Since:
- 3.3
- Author:
- Pavol Gressa
-
Constructor Summary
ConstructorDescriptionDefaultInformerNamespaceResolver
(@NonNull NamespaceResolver namespaceResolver, @NonNull io.micronaut.context.BeanContext beanContext, @Nullable DiscoveryCache discoveryCache) -
Method Summary
Modifier and TypeMethodDescriptionresolveInformerNamespaces
(@NonNull io.micronaut.core.annotation.AnnotationValue<Informer> informer) Resolves the namespaces for the informer's watched resources.
-
Constructor Details
-
DefaultInformerNamespaceResolver
public DefaultInformerNamespaceResolver(@NonNull @NonNull NamespaceResolver namespaceResolver, @NonNull @NonNull io.micronaut.context.BeanContext beanContext, @Nullable @Nullable DiscoveryCache discoveryCache)
-
-
Method Details
-
resolveInformerNamespaces
@NonNull public @NonNull Set<String> resolveInformerNamespaces(@NonNull @NonNull io.micronaut.core.annotation.AnnotationValue<Informer> informer) Description copied from interface:InformerNamespaceResolver
Resolves the namespaces for the informer's watched resources.- Specified by:
resolveInformerNamespaces
in interfaceInformerNamespaceResolver
- Parameters:
informer
- the informer- Returns:
- namespaces to watch
-