Module io.helidon.service.codegen
Package io.helidon.service.codegen.spi
Interface InjectCodegenObserver
public interface InjectCodegenObserver
Processes events from inject extension.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onInjectionPoint
(RegistryRoundContext roundContext, TypeInfo service, TypedElementInfo element, TypedElementInfo argument) Called for each injection point.default void
onProcessingEvent
(RegistryRoundContext roundContext, Set<TypedElementInfo> elements) Called after a processing event that occurred in the codegen extension.
-
Method Details
-
onProcessingEvent
Called after a processing event that occurred in the codegen extension.- Parameters:
roundContext
- context of the current processing roundelements
- all elements of interest
-
onInjectionPoint
default void onInjectionPoint(RegistryRoundContext roundContext, TypeInfo service, TypedElementInfo element, TypedElementInfo argument) Called for each injection point. In case the injection point is a field, theelement
andargument
are the same instance.- Parameters:
roundContext
- context of the current processing roundservice
- the service being processedelement
- element that owns the injection point (constructor, method, field)argument
- element that is the injection point (constructor/method parameter, field)
-