org.apache.jetspeed.services.portletcache
Class JetspeedPortletCacheService

java.lang.Object
  extended byorg.apache.turbine.services.BaseInitable
      extended byorg.apache.turbine.services.BaseService
          extended byorg.apache.turbine.services.TurbineBaseService
              extended byorg.apache.jetspeed.services.portletcache.JetspeedPortletCacheService
All Implemented Interfaces:
org.apache.turbine.services.Initable, PortletCacheService, org.apache.turbine.services.Service

public class JetspeedPortletCacheService
extends org.apache.turbine.services.TurbineBaseService
implements PortletCacheService

This implementation of the PortletCache service is a simple adapter to the Turbine GlobalCacheService

Version:
$Id: JetspeedPortletCacheService.java,v 1.11 2005/03/21 18:21:44 sgala Exp $
Author:
Kevin A. Burton, Raphaël Luta, Paul Spencer

Field Summary
 
Fields inherited from class org.apache.turbine.services.BaseService
configuration, name, properties, serviceBroker
 
Fields inherited from class org.apache.turbine.services.BaseInitable
initableBroker, isInitialized
 
Fields inherited from interface org.apache.jetspeed.services.portletcache.PortletCacheService
SERVICE_NAME
 
Constructor Summary
JetspeedPortletCacheService()
           
 
Method Summary
 void addCacheable(Cacheable item)
          Add a Cacheable object to the cache.
 Cacheable getCacheable(java.lang.String handle)
          Retrieves a Cacheable object from the cache.
 void init(javax.servlet.ServletConfig config)
          Called during Turbine.init()
 void removeCacheable(java.lang.String handle)
          Removes an object from the cache based on its handle
 
Methods inherited from class org.apache.turbine.services.TurbineBaseService
init, init, init, shutdown
 
Methods inherited from class org.apache.turbine.services.BaseService
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker
 
Methods inherited from class org.apache.turbine.services.BaseInitable
getInit, getInitableBroker, setInit, setInitableBroker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.turbine.services.Service
getConfiguration, getName, getProperties, setName, setServiceBroker
 
Methods inherited from interface org.apache.turbine.services.Initable
getInit, init, init, setInitableBroker, shutdown
 

Constructor Detail

JetspeedPortletCacheService

public JetspeedPortletCacheService()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
Called during Turbine.init()

Parameters:
config - A ServletConfig.

addCacheable

public void addCacheable(Cacheable item)
Add a Cacheable object to the cache.

Specified by:
addCacheable in interface PortletCacheService
Parameters:
item - the object to store in the Cache

removeCacheable

public void removeCacheable(java.lang.String handle)
Removes an object from the cache based on its handle

Specified by:
removeCacheable in interface PortletCacheService
Parameters:
handle - the identifier of the object we wish to retrieve
See Also:
PortletCacheService.removeCacheable(java.lang.String)

getCacheable

public Cacheable getCacheable(java.lang.String handle)
Retrieves a Cacheable object from the cache.

Specified by:
getCacheable in interface PortletCacheService
Parameters:
handle - the identifier of the object we wish to retrieve
Returns:
the cacehd object or null if not found


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.