org.apache.cocoon.caching
Class ComponentCacheKey

java.lang.Object
  extended byorg.apache.cocoon.caching.ComponentCacheKey
All Implemented Interfaces:
Serializable

public final class ComponentCacheKey
extends Object
implements Serializable

This is the cache key for one sitemap component. It consists of three parts:
a.) The component type (generator, transformer etc.)
b.) The component identifier - a unique handle for the sitemap component
c.) The cache key - a key, generated by the component, which is unique inside the components space.

Version:
$Id: ComponentCacheKey.html 1304280 2012-03-23 11:18:01Z ilgrosso $
See Also:
Serialized Form

Field Summary
static int ComponentType_Generator
           
static int ComponentType_Reader
           
static int ComponentType_Serializer
           
static int ComponentType_Transformer
           
 
Constructor Summary
ComponentCacheKey(int componentType, String componentIdentifier, Serializable cacheKey)
          Constructor
ComponentCacheKey(int componentType, String componentIdentifier, Serializable cacheKey, boolean cachePoint)
          alternate cachepoint Constructor
 
Method Summary
 boolean equals(Object object)
          Compare
 int hashCode()
          HashCode
 boolean isCachePoint()
          Check if we are a cachepoint
 String toString()
          toString The FilesystemStore uses toString!
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ComponentType_Generator

public static final int ComponentType_Generator
See Also:
Constant Field Values

ComponentType_Transformer

public static final int ComponentType_Transformer
See Also:
Constant Field Values

ComponentType_Serializer

public static final int ComponentType_Serializer
See Also:
Constant Field Values

ComponentType_Reader

public static final int ComponentType_Reader
See Also:
Constant Field Values
Constructor Detail

ComponentCacheKey

public ComponentCacheKey(int componentType,
                         String componentIdentifier,
                         Serializable cacheKey)
Constructor


ComponentCacheKey

public ComponentCacheKey(int componentType,
                         String componentIdentifier,
                         Serializable cacheKey,
                         boolean cachePoint)
alternate cachepoint Constructor

Method Detail

equals

public boolean equals(Object object)
Compare


hashCode

public int hashCode()
HashCode


toString

public String toString()
toString The FilesystemStore uses toString!


isCachePoint

public boolean isCachePoint()
Check if we are a cachepoint



Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.