public final class ReadThroughCachingUserPropertySetFactory extends Object implements com.atlassian.user.properties.PropertySetFactory
PropertySetFactory
which delegates to another PropertySetFactory
, and which keeps
the resulting PropertySet
s in a node-local cache. It also wraps those individual PropertySet
s in another
caching layer.
This whole PropertySet
thing is a massive shit-show, and needs to be taken behind the barn and shot.
ReadThroughCachingPropertySet
,
ConfluenceUserPropertySetFactory
Modifier and Type | Method and Description |
---|---|
static ReadThroughCachingUserPropertySetFactory |
create(com.atlassian.user.properties.PropertySetFactory delegate,
com.atlassian.cache.CacheFactory cacheFactory)
Create an instance for the given delegate
PropertySetFactory . |
com.opensymphony.module.propertyset.PropertySet |
getPropertySet(com.atlassian.user.Entity entity) |
public static ReadThroughCachingUserPropertySetFactory create(com.atlassian.user.properties.PropertySetFactory delegate, com.atlassian.cache.CacheFactory cacheFactory)
PropertySetFactory
.
The PropertySet
s returned by that delegate will be wrapped in a ReadThroughCachingPropertySet
peior to being themselves cached.
@Nullable public com.opensymphony.module.propertyset.PropertySet getPropertySet(com.atlassian.user.Entity entity)
getPropertySet
in interface com.atlassian.user.properties.PropertySetFactory
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences