Interface ComponentExtension.ComponentContext
- Enclosing interface:
- ComponentExtension
public static interface ComponentExtension.ComponentContext
This is the handle giving the extension information about the component being
processed and allowing to interact with the container lifecycle.
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>getType()Useful for extensions needing to access metadata from another programming model.voidwill prevent the component to be usable with findMapper()/findProcessor() but will also deactivate the associated validation so you can use @PartitionMapper and @Processor for another runtime than the framework default one.
-
Method Details
-
getType
- Returns:
- the class representing the component.
-
skipValidation
void skipValidation()will prevent the component to be usable with findMapper()/findProcessor() but will also deactivate the associated validation so you can use @PartitionMapper and @Processor for another runtime than the framework default one. -
owningExtension
Useful for extensions needing to access metadata from another programming model. Exposing the extension allows to unwrap it to access it.- Returns:
- null if no extension owns the component, the extension instance otherwise.
-