@Configuration
@ImportResource(value={"classpath:corelib-db-context.xml","classpath:corelib-solr-context.xml","classpath:corelib-utils-context.xml","classpath:corelib-web-context.xml"})
@EnableScheduling
@PropertySource(value="classpath:europeana.properties")
public class AppConfig
extends Object
| Constructor and Description |
|---|
AppConfig() |
| Modifier and Type | Method and Description |
|---|---|
Api2UrlService |
api2UrlService()
Setup service for generating API and Portal urls
|
ApiKeyUtils |
apiKeyUtils()
Setup utility for checking api key limits (connects to the PostgreSql database)
|
void |
debugJdbcThreadUsage() |
HttpCacheUtils |
httpCacheUtils()
Utility methods to help HTTP caching processing
|
void |
logConfiguration() |
eu.europeana.features.ObjectStorageClient |
objectStorageClient()
The ObjectStorageClient allows access to our Storage Provider where thumbnails and sitemap files are stored
At the moment we use Amazon S3
|
static org.springframework.context.support.PropertySourcesPlaceholderConfigurer |
properties()
Read and setup europeana.properties files.
|
@PostConstruct public void logConfiguration()
@Scheduled(fixedRate=300000L) public void debugJdbcThreadUsage()
@Bean public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer properties()
@Bean public ApiKeyUtils apiKeyUtils()
@Bean public HttpCacheUtils httpCacheUtils()
@Bean public Api2UrlService api2UrlService()
@Bean(name="api_sitemap_object_storage") public eu.europeana.features.ObjectStorageClient objectStorageClient()
Copyright © 2019 Europeana Foundation. All rights reserved.