public static T getEnvironmentProperty()

in tsfile-viewer-web/src/main/java/org/apache/iotdb/ui/config/ApplicationContextProvider.java [53:63]


  public static <T> T getEnvironmentProperty(String key, Class<T> targetClass, T defaultValue) {
    if (key == null || targetClass == null) {
      throw new NullPointerException();
    }

    T value = null;
    if (context != null) {
      value = context.getEnvironment().getProperty(key, targetClass, defaultValue);
    }
    return value;
  }