com.atlassian.greenhopper.service.project
Class XProjectCache

java.lang.Object
  extended by com.atlassian.greenhopper.service.GenericCache<java.lang.Long,XProject>
      extended by com.atlassian.greenhopper.service.project.XProjectCache
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

@Service(value="gh-xProjectCache")
public class XProjectCache
extends GenericCache<java.lang.Long,XProject>

Entity cache for XProjects. XProjects have associated JIRA projects, so we're potentially caching stale instances. That's why they get refreshed on every read.

Author:
ahennecke

Field Summary
static java.lang.String SERVICE
           
 
Fields inherited from class com.atlassian.greenhopper.service.GenericCache
cache
 
Constructor Summary
XProjectCache()
           
 
Method Summary
 XProject get(java.lang.Long key)
           
protected  java.lang.String getCacheName()
           
 void put(XProject value)
           
 
Methods inherited from class com.atlassian.greenhopper.service.GenericCache
afterPropertiesSet, clear, destroy, put, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE

public static final java.lang.String SERVICE
See Also:
Constant Field Values
Constructor Detail

XProjectCache

public XProjectCache()
Method Detail

getCacheName

protected java.lang.String getCacheName()
Specified by:
getCacheName in class GenericCache<java.lang.Long,XProject>

get

public XProject get(java.lang.Long key)
Overrides:
get in class GenericCache<java.lang.Long,XProject>
Returns:
the entity that matches the key, or null if none is in the cache

put

public void put(XProject value)


Copyright © 2007-2011 Atlassian. All Rights Reserved.