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

org.testng.internal.IParameterInfo Maven / Gradle / Ivy

There is a newer version: 7.10.1
Show newest version
package org.testng.internal;

/**
 * Represents the ability to retrieve the parameters associated with a factory method.
 */
public interface IParameterInfo {

  /**
   * @return - The actual instance associated with a factory method
   */
  Object getInstance();

  /**
   * @return - The parameters associated with the factory method as an array.
   */
  Object[] getParameters();

  static Object embeddedInstance(Object original) {
    if (original instanceof IParameterInfo) {
      return ((IParameterInfo) original).getInstance();
    }
    return original;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy