Class AiidaConfiguration

java.lang.Object
energy.eddie.aiida.config.AiidaConfiguration

@Configuration @EnableScheduling public class AiidaConfiguration extends Object
  • Field Details

    • AIIDA_ZONE_ID

      public static final ZoneId AIIDA_ZONE_ID
  • Constructor Details

    • AiidaConfiguration

      public AiidaConfiguration()
  • Method Details

    • customObjectMapper

      @Bean @Primary public org.springframework.http.converter.json.Jackson2ObjectMapperBuilder customObjectMapper()
      Configures and returns an ObjectMapper bean that should be used for (de-)serializing POJOs to JSON. The ObjectMapperSingleton can also be used by classes that cannot use constructor injection using the @Autowired annotation and will return the same instance.
      Returns:
      ObjectMapper instance configured to fit the AIIDA project.
    • clock

      @Bean public Clock clock()
      Returns a clock instance that should be used for timestamps (e.g. when a permission is revoked).
    • webClient

      @Bean public org.springframework.web.reactive.function.client.WebClient webClient()
      WebClient used for handshake with EDDIE.
    • permissionFutures

      @Bean public ConcurrentMap<UUID,ScheduledFuture<?>> permissionFutures()