public class DefaultWaoApplicationContext extends Object implements WaoApplicationContext
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_CONTEXT_PARAMETER |
protected WaoApplicationConfig |
applicationConfig |
protected com.google.common.cache.Cache<BoatsFilterValuesCacheKey,BoatsFilterValues> |
boatsFilterValuesCache |
protected com.google.common.cache.Cache<ContactsFilterValuesCacheKey,ContactsFilterValues> |
contactsFilterValuesCache |
protected Random |
random |
protected com.google.common.cache.Cache<SamplingPlanCacheKey,SamplingPlan> |
samplingPlansCache |
protected com.google.common.cache.Cache<ContactsFilter,Synthesis> |
synthesesCache |
protected WaoTopiaApplicationContext |
topiaApplicationContext |
protected WaoWebApplicationContext |
webApplicationContext |
| Constructor and Description |
|---|
DefaultWaoApplicationContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
WaoApplicationConfig |
getApplicationConfig() |
com.google.common.cache.Cache<BoatsFilterValuesCacheKey,BoatsFilterValues> |
getBoatsFilterValuesCache() |
com.google.common.cache.Cache<ContactsFilterValuesCacheKey,ContactsFilterValues> |
getContactsFilterValuesCache() |
Date |
getNow() |
Random |
getRandom() |
com.google.common.cache.Cache<SamplingPlanCacheKey,SamplingPlan> |
getSamplingPlansCache() |
com.google.common.cache.Cache<ContactsFilter,Synthesis> |
getSynthesesCache() |
WaoTopiaApplicationContext |
getTopiaApplicationContext() |
WaoWebApplicationContext |
getWebApplicationContext() |
void |
init() |
protected void |
logCacheStats() |
protected <K,V> com.google.common.cache.CacheBuilder<K,V> |
newCacheBuilder(int expectedMaximumCacheSize) |
WaoTopiaPersistenceContext |
newPersistenceContext() |
WaoServiceContext |
newServiceContext(WaoTopiaPersistenceContext persistenceContext,
Locale locale) |
String |
newUuid() |
public static final String APPLICATION_CONTEXT_PARAMETER
protected WaoTopiaApplicationContext topiaApplicationContext
protected WaoApplicationConfig applicationConfig
protected WaoWebApplicationContext webApplicationContext
protected Random random
protected com.google.common.cache.Cache<SamplingPlanCacheKey,SamplingPlan> samplingPlansCache
protected com.google.common.cache.Cache<BoatsFilterValuesCacheKey,BoatsFilterValues> boatsFilterValuesCache
protected com.google.common.cache.Cache<ContactsFilter,Synthesis> synthesesCache
protected com.google.common.cache.Cache<ContactsFilterValuesCacheKey,ContactsFilterValues> contactsFilterValuesCache
public WaoApplicationConfig getApplicationConfig()
getApplicationConfig in interface WaoApplicationContextpublic WaoTopiaApplicationContext getTopiaApplicationContext()
public String newUuid()
newUuid in interface WaoApplicationContextpublic WaoWebApplicationContext getWebApplicationContext()
getWebApplicationContext in interface WaoApplicationContextpublic Date getNow()
getNow in interface WaoApplicationContextpublic Random getRandom()
getRandom in interface WaoApplicationContextpublic com.google.common.cache.Cache<SamplingPlanCacheKey,SamplingPlan> getSamplingPlansCache()
getSamplingPlansCache in interface WaoApplicationContextpublic com.google.common.cache.Cache<BoatsFilterValuesCacheKey,BoatsFilterValues> getBoatsFilterValuesCache()
getBoatsFilterValuesCache in interface WaoApplicationContextpublic com.google.common.cache.Cache<ContactsFilter,Synthesis> getSynthesesCache()
getSynthesesCache in interface WaoApplicationContextpublic com.google.common.cache.Cache<ContactsFilterValuesCacheKey,ContactsFilterValues> getContactsFilterValuesCache()
getContactsFilterValuesCache in interface WaoApplicationContextprotected <K,V> com.google.common.cache.CacheBuilder<K,V> newCacheBuilder(int expectedMaximumCacheSize)
public WaoTopiaPersistenceContext newPersistenceContext()
newPersistenceContext in interface WaoApplicationContextpublic WaoServiceContext newServiceContext(WaoTopiaPersistenceContext persistenceContext, Locale locale)
newServiceContext in interface WaoApplicationContextpublic void close()
close in interface WaoApplicationContextprotected void logCacheStats()
public void init()
Copyright © 2009–2014 Ifremer. All rights reserved.