com.jalios.jtaglib
Class RssCacheManager

java.lang.Object
  extended by com.jalios.jtaglib.RssCacheManager

public class RssCacheManager
extends Object

Manager class used to cache RssChannel instance.

Since:
jcms-6.0
Version:
$Revision: 22221 $

Field Summary
static String REVISION
           
 
Constructor Summary
RssCacheManager()
           
 
Method Summary
static void clearAll()
          Clear the cache from all RssChannel.
static RssChannel getRssChannel(String id)
          Retrieve a cached RssChannel from its id.
static RssChannel putRssChannel(String id, RssChannel rssChannel)
          Cache a RssChannel.
static RssChannel removeRssChannel(String id)
          Remove a cached RssChannel from its id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

RssCacheManager

public RssCacheManager()
Method Detail

putRssChannel

public static RssChannel putRssChannel(String id,
                                       RssChannel rssChannel)
Cache a RssChannel.

Parameters:
id - the unique id of the RssChannel
rssChannel - the RssChannel instance to cache
Returns:
the previous RssChannel instance associated to this id or null if none
Since:
jcms-6.0

getRssChannel

public static RssChannel getRssChannel(String id)
Retrieve a cached RssChannel from its id.

Parameters:
id - the id of the RssChannel
Returns:
the cached RssChannel or null if it could not be found
Since:
jcms-6.0

removeRssChannel

public static RssChannel removeRssChannel(String id)
Remove a cached RssChannel from its id.

Parameters:
id - the id of the RssChannel
Returns:
the value associated to this id before removal
Since:
jcms-6.0

clearAll

public static void clearAll()
Clear the cache from all RssChannel.

Since:
jcms-6.0


Copyright © 2001-2010 Jalios SA. All Rights Reserved.