You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is to create an interface ComponentIdConverter that has two methods - convertToObject and optionally a convertToId method. In the @ComponentInteraction annotation, you can specify a class that implements the interface. When the pattern of the component id is matched, it will try to instantiate a new converted object and call its convertToObject method on the id. Afterwards, the user can inject the converter into the method using another annotation. If the converted throws an exception because it could not pass the id, the method is not executed and an error is logged.
The text was updated successfully, but these errors were encountered:
The idea is to create an interface ComponentIdConverter that has two methods - convertToObject and optionally a convertToId method. In the @ComponentInteraction annotation, you can specify a class that implements the interface. When the pattern of the component id is matched, it will try to instantiate a new converted object and call its convertToObject method on the id. Afterwards, the user can inject the converter into the method using another annotation. If the converted throws an exception because it could not pass the id, the method is not executed and an error is logged.
The text was updated successfully, but these errors were encountered: