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

file.pagefactory.FileProcessor Maven / Gradle / Ivy

The newest version!
package file.pagefactory;

import java.lang.reflect.Field;

import org.openqa.selenium.support.pagefactory.Annotations;

public interface FileProcessor {

	void dataSourceDetails(Field field);

	default void checkAndCallParseDataSource(Field field) {
		System.out.println(Thread.currentThread().getId() + "---" + "Final Check data In here "+field.getName());
		// If data is got from previous parsing then return.
		if (FieldByCache.doesByExistForField(field))
			return;
		parseDataSource();
	}
	
	void parseDataSource();

	Annotations getAnnotation(Field field);

	default void populateData(Field field) {

		dataSourceDetails(field);

		checkAndCallParseDataSource(field);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy