package org.fluentlenium.core.events.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Add this annotation on a method to register it in {@link org.fluentlenium.core.events.EventsRegistry}. * <p> * Can be used in test adapter and component. * <p> * Parameters from {@link org.fluentlenium.core.events.AlertListener} will be injected in the method based on parameters types. * * @see org.fluentlenium.core.events.EventsRegistry#afterAlertAccept(org.fluentlenium.core.events.AlertListener) */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface AfterAlertAccept { /** * Priority of the method. Higher priority will be executed first. * * @return priority value */ int value() default 0; }