All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fluentlenium.core.inject.NoInject Maven / Gradle / Ivy

package org.fluentlenium.core.inject;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * When this annotation is applied on a field FluentLenium injection is disabled for that.
 * 

* It may be useful in scenarios when one wants to have a simple instance field setting it manually, and not relying on injection * either using a Selenium {@code Find...} annotation, or without using one relying on the field name based element lookup. *

* With that said if a field is marked as {@code NoInject}, none of the Selenium {@code Find...} annotations are necessary * on that field, because it won't have any effect. */ @Target(FIELD) @Retention(RUNTIME) public @interface NoInject { }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy