public enum DefaultViewConfigurationCache extends Enum<DefaultViewConfigurationCache> implements ViewConfigurationCache
ViewConfigurationCache implementation| Enum Constant and Description |
|---|
INSTANCE
Singleton instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clear cache
|
ViewConfiguration |
getViewConfiguration(Class<? extends com.vaadin.navigator.View> viewClass)
Get cached view configuration
|
boolean |
hasViewConfiguration(Class<? extends com.vaadin.navigator.View> viewClass)
Check if cache contains a view configuration associated to given
viewClass |
ViewConfiguration |
storeViewConfiguration(Class<? extends com.vaadin.navigator.View> viewClass,
ViewConfiguration viewConfiguration)
Put given
viewConfiguration associated to view class if not already present in cache. |
static DefaultViewConfigurationCache |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultViewConfigurationCache[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultViewConfigurationCache INSTANCE
public static DefaultViewConfigurationCache[] values()
for (DefaultViewConfigurationCache c : DefaultViewConfigurationCache.values()) System.out.println(c);
public static DefaultViewConfigurationCache valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean hasViewConfiguration(Class<? extends com.vaadin.navigator.View> viewClass)
ViewConfigurationCacheviewClasshasViewConfiguration in interface ViewConfigurationCacheviewClass - View classtrue if cache contains a view configuration associated to given viewClasspublic void clearCache()
ViewConfigurationCacheclearCache in interface ViewConfigurationCachepublic ViewConfiguration getViewConfiguration(Class<? extends com.vaadin.navigator.View> viewClass)
ViewConfigurationCachegetViewConfiguration in interface ViewConfigurationCacheviewClass - View classnull if it is not present in cachepublic ViewConfiguration storeViewConfiguration(Class<? extends com.vaadin.navigator.View> viewClass, ViewConfiguration viewConfiguration)
ViewConfigurationCacheviewConfiguration associated to view class if not already present in cache.storeViewConfiguration in interface ViewConfigurationCacheviewClass - View classviewConfiguration - View configuration to store in cacheCopyright © 2019 The Holon Platform. All rights reserved.