public class CachingConfluenceUserPropertySetFactory
extends com.atlassian.user.impl.cache.properties.CachingPropertySetFactory
PropertySet
s. This prevents the need for PropertySets to be looked up repeatedly from the wrapped
PropertySetFactory. Retrieved PropertySets are also wrapped in a CachedPropertySet so that individual property values
are cached instead of repeatedly retrieved. Both levels of caching rewrite to the cache whenever a setter is called
on a PropertySet
.
The cache is keyed purely on entity name, so it assumes all entities used have unique names, even across entity types.
Since the decorated PropertySets retrieved from the underlyingPropertySetFactory
are cached they must be
Serializable
.
This class extends CachingPropertySetFactory
only for backwards compatibility.
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_SETS_REFERENCES_CACHE |
Constructor and Description |
---|
CachingConfluenceUserPropertySetFactory(com.atlassian.user.properties.PropertySetFactory underlyingPropertySetFactory,
com.atlassian.vcache.VCacheFactory cacheFactory) |
Modifier and Type | Method and Description |
---|---|
@Nullable com.opensymphony.module.propertyset.PropertySet |
getPropertySet(com.atlassian.user.Entity entity) |
public static final String PROPERTY_SETS_REFERENCES_CACHE
public CachingConfluenceUserPropertySetFactory(com.atlassian.user.properties.PropertySetFactory underlyingPropertySetFactory, com.atlassian.vcache.VCacheFactory cacheFactory)
public @Nullable com.opensymphony.module.propertyset.PropertySet getPropertySet(com.atlassian.user.Entity entity) throws com.atlassian.user.EntityException
getPropertySet
in interface com.atlassian.user.properties.PropertySetFactory
getPropertySet
in class com.atlassian.user.impl.cache.properties.CachingPropertySetFactory
com.atlassian.user.EntityException
Copyright © 2003–2019 Atlassian. All rights reserved.