Class WebappConfig


  • @Configuration
    @EnableScheduling
    public class WebappConfig
    extends Object
    Spring config for the webapp
    Author:
    pwinckles
    • Method Detail

      • taskScheduler

        @Bean
        public org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler taskScheduler()
        Task scheduler used for cleaning up transactions
        Returns:
        scheduler
      • connectionManager

        @Bean
        public org.apache.http.conn.HttpClientConnectionManager connectionManager()
        HTTP connection manager
        Returns:
        connection manager
      • eventBus

        @Bean
        public com.google.common.eventbus.EventBus eventBus​(org.fcrepo.config.FedoraPropsConfig propsConfig)
        Fedora's lightweight internal event bus. Currently memory-resident.
        Parameters:
        propsConfig - config
        Returns:
        event bus
      • eventBusExecutor

        @Bean
        public ExecutorService eventBusExecutor​(org.fcrepo.config.FedoraPropsConfig propsConfig)
        Parameters:
        propsConfig - config
        Returns:
        executor intended to be used by the Guava event bus
      • rdfNamespaceRegistry

        @Bean(initMethod="init",
              destroyMethod="shutdown")
        public org.fcrepo.kernel.api.rdf.RdfNamespaceRegistry rdfNamespaceRegistry​(org.fcrepo.config.FedoraPropsConfig propsConfig)
        Configuration of namespace prefixes
        Parameters:
        propsConfig - config properties
        Returns:
        rdf namespace registry
      • externalContentPathValidator

        @Bean(initMethod="init",
              destroyMethod="shutdown")
        public org.fcrepo.http.api.ExternalContentPathValidator externalContentPathValidator​(org.fcrepo.config.FedoraPropsConfig propsConfig)
        External content configuration
        Parameters:
        propsConfig - config properties
        Returns:
        external content path validator
      • externalContentHandlerFactory

        @Bean
        public org.fcrepo.http.api.ExternalContentHandlerFactory externalContentHandlerFactory​(org.fcrepo.http.api.ExternalContentPathValidator validator)
      • authHandleCache

        @Bean
        public com.github.benmanes.caffeine.cache.Cache<String,​Optional<org.fcrepo.kernel.api.auth.ACLHandle>> authHandleCache()
        Used to cache the effective ACL location and authorizations for a given resource.
        Returns:
        the cache