Package org.fcrepo.webapp
Class WebappConfig
- java.lang.Object
-
- org.fcrepo.webapp.WebappConfig
-
@Configuration @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<org.fcrepo.kernel.api.auth.ACLHandle>>authHandleCache()Used to cache the effective ACL location and authorizations for a given resource.org.apache.http.conn.HttpClientConnectionManagerconnectionManager()HTTP connection managercom.google.common.eventbus.EventBuseventBus(org.fcrepo.config.FedoraPropsConfig propsConfig)Fedora's lightweight internal event bus.ExecutorServiceeventBusExecutor(org.fcrepo.config.FedoraPropsConfig propsConfig)org.fcrepo.http.api.ExternalContentHandlerFactoryexternalContentHandlerFactory(org.fcrepo.http.api.ExternalContentPathValidator validator)org.fcrepo.http.api.ExternalContentPathValidatorexternalContentPathValidator(org.fcrepo.config.FedoraPropsConfig propsConfig)External content configurationorg.fcrepo.kernel.api.rdf.RdfNamespaceRegistryrdfNamespaceRegistry(org.fcrepo.config.FedoraPropsConfig propsConfig)Configuration of namespace prefixesorg.springframework.scheduling.concurrent.ThreadPoolTaskSchedulertaskScheduler()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(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
-
-