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

kz.greetgo.conf.hot.HasConfigInterfaceAndMethod Maven / Gradle / Ivy

There is a newer version: 2.0.5
Show newest version
package kz.greetgo.conf.hot;

import java.lang.reflect.Method;

public abstract class HasConfigInterfaceAndMethod extends RuntimeException {

  public final Class configInterface;
  public final Method method;

  protected HasConfigInterfaceAndMethod(String message, Throwable cause,
                                        Class configInterface, Method method) {
    super(message, cause);
    this.configInterface = configInterface;
    this.method = method;
  }

  protected HasConfigInterfaceAndMethod(String message) {
    super(message);
    this.configInterface = null;
    this.method = null;
  }

  public HasConfigInterfaceAndMethod(String message, Throwable cause) {
    super(message, cause);
    this.configInterface = null;
    this.method = null;
  }

  public abstract HasConfigInterfaceAndMethod setSourcePoint(Class configInterface, Method method);

  protected static String place(Class configInterface, Method method) {
    return configInterface.getName() + "." + method.getName() + "()";
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy