@Deprecated public class

JiraCachingPropertySet

extends Object
implements PropertySet
java.lang.Object
   ↳ com.atlassian.jira.propertyset.JiraCachingPropertySet

This class is deprecated.
This class is inherently unsafe to use in a clustered environment. Use CachingOfBizPropertySet (keyed as "ofbiz-cached" instead. Since v6.2.

Class Overview

A PropertySet which decorates another PropertySet and caches the results. Must be correctly initialised via the init(Map, Map) before use.

Similar to com.opensymphony.module.propertyset.cached.CachingPropertySet class but does more caching.

This class is threadsafe. It uses a Lock to co-ordinate concurrent access. This means that improper publication is avoided as long as init(Map, Map) is called from the creating thread before use.

Summary

[Expand]
Inherited Constants
From interface com.opensymphony.module.propertyset.PropertySet
Public Constructors
JiraCachingPropertySet()
Public Methods
void clearCache()
Clears any cached properties.
boolean exists(String key)
Object getAsActualType(String key)
boolean getBoolean(String key)
byte[] getData(String key)
Date getDate(String key)
double getDouble(String key)
int getInt(String key)
Collection getKeys()
Collection getKeys(int type)
Collection getKeys(String prefix)
Collection getKeys(String prefix, int type)
long getLong(String key)
Object getObject(String key)
Properties getProperties(String key)
PropertySetSchema getSchema()
String getString(String key)
String getText(String key)
int getType(String key)
Document getXML(String key)
void init(Map config, Map args)
Initialises this JiraCachingPropertySet.
boolean isSettable(String property)
void remove()
void remove(String key)
void setAsActualType(String key, Object value)
void setBoolean(String key, boolean value)
void setData(String key, byte[] value)
void setDate(String key, Date value)
void setDouble(String key, double value)
void setInt(String key, int value)
void setLong(String key, long value)
void setObject(String key, Object value)
void setProperties(String key, Properties value)
void setSchema(PropertySetSchema schema)
void setString(String key, String value)
void setText(String key, String value)
void setXML(String key, Document value)
boolean supportsType(int type)
boolean supportsTypes()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.opensymphony.module.propertyset.PropertySet

Public Constructors

public JiraCachingPropertySet ()

Public Methods

public void clearCache ()

Clears any cached properties. Does not affect the decorated PropertySet.

public boolean exists (String key)

public Object getAsActualType (String key)

public boolean getBoolean (String key)

public byte[] getData (String key)

public Date getDate (String key)

public double getDouble (String key)

public int getInt (String key)

public Collection getKeys ()

public Collection getKeys (int type)

public Collection getKeys (String prefix)

public Collection getKeys (String prefix, int type)

public long getLong (String key)

public Object getObject (String key)

public Properties getProperties (String key)

public PropertySetSchema getSchema ()

public String getString (String key)

public String getText (String key)

public int getType (String key)

public Document getXML (String key)

public void init (Map config, Map args)

Initialises this JiraCachingPropertySet. PropertySetManager first constructs an instance of a PropertySet, and then calls init().

The args parameter must always contain an entry of type PropertySet under the key "PropertySet". If args contains a Boolean entry under the key of "bulkload" which is set to true, then all the values in the underlying PropertySet will be preloaded into the cache.

Parameters
config Config from PropertySetConfig
args Map of args passed to PropertySetManager.getInstance()

public boolean isSettable (String property)

public void remove ()

public void remove (String key)

public void setAsActualType (String key, Object value)

public void setBoolean (String key, boolean value)

public void setData (String key, byte[] value)

public void setDate (String key, Date value)

public void setDouble (String key, double value)

public void setInt (String key, int value)

public void setLong (String key, long value)

public void setObject (String key, Object value)

public void setProperties (String key, Properties value)

public void setSchema (PropertySetSchema schema)

public void setString (String key, String value)

public void setText (String key, String value)

public void setXML (String key, Document value)

public boolean supportsType (int type)

public boolean supportsTypes ()