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

de.digitalcollections.iiif.hymir.frontend.GlobalControllerAdvice Maven / Gradle / Ivy

Go to download

Hymir is a Java based IIIF Server. It is based on "IIIF API Java Libraries" (Java implementations of the IIIF specifications, see https://github.com/dbmdz/iiif-apis).

There is a newer version: 5.1.13
Show newest version
package de.digitalcollections.iiif.hymir.frontend;

import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ModelAttribute;

/** Adds the webjar versions read from yaml files as global model attribute. */
@ControllerAdvice
public class GlobalControllerAdvice {

  @Autowired
  @Value("#{webjarVersions}")
  private Map webjarVersions;

  @ModelAttribute("webjarVersions")
  public Map getWebjarVersions() {
    return webjarVersions;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy