com.atlassian.jira.propertyset
Class JiraCachingPropertySet

java.lang.Object
  extended by com.atlassian.jira.propertyset.JiraCachingPropertySet
All Implemented Interfaces:
com.opensymphony.module.propertyset.PropertySet

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

@Deprecated
public class JiraCachingPropertySet
extends Object
implements com.opensymphony.module.propertyset.PropertySet

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.


Field Summary
 
Fields inherited from interface com.opensymphony.module.propertyset.PropertySet
BOOLEAN, DATA, DATE, DOUBLE, INT, LONG, OBJECT, PROPERTIES, STRING, TEXT, XML
 
Constructor Summary
JiraCachingPropertySet()
          Deprecated.  
 
Method Summary
 void clearCache()
          Deprecated. Clears any cached properties.
 boolean exists(String key)
          Deprecated.  
 Object getAsActualType(String key)
          Deprecated.  
 boolean getBoolean(String key)
          Deprecated.  
 byte[] getData(String key)
          Deprecated.  
 Date getDate(String key)
          Deprecated.  
 double getDouble(String key)
          Deprecated.  
 int getInt(String key)
          Deprecated.  
 Collection getKeys()
          Deprecated.  
 Collection getKeys(int type)
          Deprecated.  
 Collection getKeys(String prefix)
          Deprecated.  
 Collection getKeys(String prefix, int type)
          Deprecated.  
 long getLong(String key)
          Deprecated.  
 Object getObject(String key)
          Deprecated.  
 Properties getProperties(String key)
          Deprecated.  
 com.opensymphony.module.propertyset.PropertySetSchema getSchema()
          Deprecated.  
 String getString(String key)
          Deprecated.  
 String getText(String key)
          Deprecated.  
 int getType(String key)
          Deprecated.  
 Document getXML(String key)
          Deprecated.  
 void init(Map config, Map args)
          Deprecated. Initialises this JiraCachingPropertySet.
 boolean isSettable(String property)
          Deprecated.  
 void remove()
          Deprecated.  
 void remove(String key)
          Deprecated.  
 void setAsActualType(String key, Object value)
          Deprecated.  
 void setBoolean(String key, boolean value)
          Deprecated.  
 void setData(String key, byte[] value)
          Deprecated.  
 void setDate(String key, Date value)
          Deprecated.  
 void setDouble(String key, double value)
          Deprecated.  
 void setInt(String key, int value)
          Deprecated.  
 void setLong(String key, long value)
          Deprecated.  
 void setObject(String key, Object value)
          Deprecated.  
 void setProperties(String key, Properties value)
          Deprecated.  
 void setSchema(com.opensymphony.module.propertyset.PropertySetSchema schema)
          Deprecated.  
 void setString(String key, String value)
          Deprecated.  
 void setText(String key, String value)
          Deprecated.  
 void setXML(String key, Document value)
          Deprecated.  
 boolean supportsType(int type)
          Deprecated.  
 boolean supportsTypes()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraCachingPropertySet

public JiraCachingPropertySet()
Deprecated. 
Method Detail

setAsActualType

public void setAsActualType(String key,
                            Object value)
Deprecated. 
Specified by:
setAsActualType in interface com.opensymphony.module.propertyset.PropertySet

getAsActualType

public Object getAsActualType(String key)
Deprecated. 
Specified by:
getAsActualType in interface com.opensymphony.module.propertyset.PropertySet

setBoolean

public void setBoolean(String key,
                       boolean value)
Deprecated. 
Specified by:
setBoolean in interface com.opensymphony.module.propertyset.PropertySet

getBoolean

public boolean getBoolean(String key)
Deprecated. 
Specified by:
getBoolean in interface com.opensymphony.module.propertyset.PropertySet

setData

public void setData(String key,
                    byte[] value)
Deprecated. 
Specified by:
setData in interface com.opensymphony.module.propertyset.PropertySet

getData

public byte[] getData(String key)
Deprecated. 
Specified by:
getData in interface com.opensymphony.module.propertyset.PropertySet

setDate

public void setDate(String key,
                    Date value)
Deprecated. 
Specified by:
setDate in interface com.opensymphony.module.propertyset.PropertySet

getDate

public Date getDate(String key)
Deprecated. 
Specified by:
getDate in interface com.opensymphony.module.propertyset.PropertySet

setDouble

public void setDouble(String key,
                      double value)
Deprecated. 
Specified by:
setDouble in interface com.opensymphony.module.propertyset.PropertySet

getDouble

public double getDouble(String key)
Deprecated. 
Specified by:
getDouble in interface com.opensymphony.module.propertyset.PropertySet

setInt

public void setInt(String key,
                   int value)
Deprecated. 
Specified by:
setInt in interface com.opensymphony.module.propertyset.PropertySet

getInt

public int getInt(String key)
Deprecated. 
Specified by:
getInt in interface com.opensymphony.module.propertyset.PropertySet

getKeys

public Collection getKeys()
Deprecated. 
Specified by:
getKeys in interface com.opensymphony.module.propertyset.PropertySet

getKeys

public Collection getKeys(int type)
Deprecated. 
Specified by:
getKeys in interface com.opensymphony.module.propertyset.PropertySet

getKeys

public Collection getKeys(String prefix)
Deprecated. 
Specified by:
getKeys in interface com.opensymphony.module.propertyset.PropertySet

getKeys

public Collection getKeys(String prefix,
                          int type)
Deprecated. 
Specified by:
getKeys in interface com.opensymphony.module.propertyset.PropertySet

setLong

public void setLong(String key,
                    long value)
Deprecated. 
Specified by:
setLong in interface com.opensymphony.module.propertyset.PropertySet

getLong

public long getLong(String key)
Deprecated. 
Specified by:
getLong in interface com.opensymphony.module.propertyset.PropertySet

setObject

public void setObject(String key,
                      Object value)
Deprecated. 
Specified by:
setObject in interface com.opensymphony.module.propertyset.PropertySet

getObject

public Object getObject(String key)
Deprecated. 
Specified by:
getObject in interface com.opensymphony.module.propertyset.PropertySet

setProperties

public void setProperties(String key,
                          Properties value)
Deprecated. 
Specified by:
setProperties in interface com.opensymphony.module.propertyset.PropertySet

getProperties

public Properties getProperties(String key)
Deprecated. 
Specified by:
getProperties in interface com.opensymphony.module.propertyset.PropertySet

setSchema

public void setSchema(com.opensymphony.module.propertyset.PropertySetSchema schema)
Deprecated. 
Specified by:
setSchema in interface com.opensymphony.module.propertyset.PropertySet

getSchema

public com.opensymphony.module.propertyset.PropertySetSchema getSchema()
Deprecated. 
Specified by:
getSchema in interface com.opensymphony.module.propertyset.PropertySet

isSettable

public boolean isSettable(String property)
Deprecated. 
Specified by:
isSettable in interface com.opensymphony.module.propertyset.PropertySet

setString

public void setString(String key,
                      String value)
Deprecated. 
Specified by:
setString in interface com.opensymphony.module.propertyset.PropertySet

getString

public String getString(String key)
Deprecated. 
Specified by:
getString in interface com.opensymphony.module.propertyset.PropertySet

setText

public void setText(String key,
                    String value)
Deprecated. 
Specified by:
setText in interface com.opensymphony.module.propertyset.PropertySet

getText

public String getText(String key)
Deprecated. 
Specified by:
getText in interface com.opensymphony.module.propertyset.PropertySet

getType

public int getType(String key)
Deprecated. 
Specified by:
getType in interface com.opensymphony.module.propertyset.PropertySet

setXML

public void setXML(String key,
                   Document value)
Deprecated. 
Specified by:
setXML in interface com.opensymphony.module.propertyset.PropertySet

getXML

public Document getXML(String key)
Deprecated. 
Specified by:
getXML in interface com.opensymphony.module.propertyset.PropertySet

exists

public boolean exists(String key)
Deprecated. 
Specified by:
exists in interface com.opensymphony.module.propertyset.PropertySet

init

public void init(Map config,
                 Map args)
Deprecated. 
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.

Specified by:
init in interface com.opensymphony.module.propertyset.PropertySet
Parameters:
config - Config from PropertySetConfig
args - Map of args passed to PropertySetManager.getInstance()
See Also:
PropertySet.init(java.util.Map,java.util.Map), PropertySetManager.getInstance(String,java.util.Map)

remove

public void remove(String key)
Deprecated. 
Specified by:
remove in interface com.opensymphony.module.propertyset.PropertySet

supportsType

public boolean supportsType(int type)
Deprecated. 
Specified by:
supportsType in interface com.opensymphony.module.propertyset.PropertySet

supportsTypes

public boolean supportsTypes()
Deprecated. 
Specified by:
supportsTypes in interface com.opensymphony.module.propertyset.PropertySet

remove

public void remove()
            throws com.opensymphony.module.propertyset.PropertyException
Deprecated. 
Specified by:
remove in interface com.opensymphony.module.propertyset.PropertySet
Throws:
com.opensymphony.module.propertyset.PropertyException

clearCache

public void clearCache()
Deprecated. 
Clears any cached properties. Does not affect the decorated PropertySet.

Since:
6.1


Copyright © 2002-2014 Atlassian. All Rights Reserved.