Package org.fcrepo.webapp
Class WebappConfig
- java.lang.Object
-
- org.fcrepo.webapp.WebappConfig
-
@Configuration @EnableAsync @EnableScheduling public class WebappConfig extends Object
Spring config for the webapp- Author:
- pwinckles
-
-
Constructor Summary
Constructors Constructor Description WebappConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.benmanes.caffeine.cache.Cache<String,Optional<ACLHandle>>
authHandleCache()
Used to cache the effective ACL location and authorizations for a given resource.org.apache.http.conn.HttpClientConnectionManager
connectionManager()
HTTP connection managercom.google.common.eventbus.EventBus
eventBus(FedoraPropsConfig propsConfig)
Fedora's lightweight internal event bus.ExecutorService
eventBusExecutor(FedoraPropsConfig propsConfig)
ExternalContentHandlerFactory
externalContentHandlerFactory(ExternalContentPathValidator validator)
ExternalContentPathValidator
externalContentPathValidator(FedoraPropsConfig propsConfig)
External content configurationRdfNamespaceRegistry
rdfNamespaceRegistry(FedoraPropsConfig propsConfig)
Configuration of namespace prefixesjavax.servlet.Filter
repositoryInitializationFilter()
Filter to prevent http requests during repo initorg.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
taskScheduler()
Task scheduler used for cleaning up transactions
-
-
-
Constructor Detail
-
WebappConfig
public WebappConfig()
-
-
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(FedoraPropsConfig propsConfig)
Fedora's lightweight internal event bus. Currently memory-resident.- Parameters:
propsConfig
- config- Returns:
- event bus
-
eventBusExecutor
@Bean public ExecutorService eventBusExecutor(FedoraPropsConfig propsConfig)
- Parameters:
propsConfig
- config- Returns:
- executor intended to be used by the Guava event bus
-
rdfNamespaceRegistry
@Bean(initMethod="init", destroyMethod="shutdown") public RdfNamespaceRegistry rdfNamespaceRegistry(FedoraPropsConfig propsConfig)
Configuration of namespace prefixes- Parameters:
propsConfig
- config properties- Returns:
- rdf namespace registry
-
externalContentPathValidator
@Bean(initMethod="init", destroyMethod="shutdown") public ExternalContentPathValidator externalContentPathValidator(FedoraPropsConfig propsConfig)
External content configuration- Parameters:
propsConfig
- config properties- Returns:
- external content path validator
-
externalContentHandlerFactory
@Bean public ExternalContentHandlerFactory externalContentHandlerFactory(ExternalContentPathValidator validator)
-
authHandleCache
@Bean public com.github.benmanes.caffeine.cache.Cache<String,Optional<ACLHandle>> authHandleCache()
Used to cache the effective ACL location and authorizations for a given resource.- Returns:
- the cache
-
repositoryInitializationFilter
@Bean public javax.servlet.Filter repositoryInitializationFilter()
Filter to prevent http requests during repo init- Returns:
- the filter
-
-