Class ResourceEventHandlerBeanListener<ApiType extends io.kubernetes.client.common.KubernetesObject>
java.lang.Object
io.micronaut.kubernetes.client.informer.ResourceEventHandlerBeanListener<ApiType>
- Type Parameters:
ApiType
- type of Kubernetes Object
- All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<io.kubernetes.client.informer.ResourceEventHandler<ApiType>>
,EventListener
@Requires(beans=io.kubernetes.client.informer.SharedInformerFactory.class)
@Context
@Internal
public class ResourceEventHandlerBeanListener<ApiType extends io.kubernetes.client.common.KubernetesObject>
extends Object
implements io.micronaut.context.event.BeanCreatedEventListener<io.kubernetes.client.informer.ResourceEventHandler<ApiType>>
BeanCreatedEventListener for the
ResourceEventHandler
beans annotated by Informer
annotation that
based on provided parameters in the Informer
annotation created the SharedIndexInformer
and registers
ResourceEventHandler
to the informer.- Since:
- 3.3
- Author:
- Pavol Gressa
-
Constructor Summary
ConstructorDescriptionResourceEventHandlerBeanListener
(SharedIndexInformerFactory sharedIndexInformerFactory, InformerApiGroupResolver apiGroupResolver, InformerResourcePluralResolver resourcePluralResolver, InformerNamespaceResolver namespaceResolver, InformerLabelSelectorResolver labelSelectorResolver) -
Method Summary
-
Constructor Details
-
Method Details
-
onCreated
public io.kubernetes.client.informer.ResourceEventHandler<ApiType> onCreated(io.micronaut.context.event.BeanCreatedEvent<io.kubernetes.client.informer.ResourceEventHandler<ApiType>> event) - Specified by:
onCreated
in interfaceio.micronaut.context.event.BeanCreatedEventListener<ApiType extends io.kubernetes.client.common.KubernetesObject>
-