org.apache.cocoon.caching
Class ComponentCacheKey

java.lang.Object
  extended by org.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:
CVS $Id: ComponentCacheKey.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler
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

Overrides:
equals in class Object

hashCode

public int hashCode()
HashCode

Overrides:
hashCode in class Object

toString

public String toString()
toString The FilesystemStore uses toString!

Overrides:
toString in class Object

isCachePoint

public boolean isCachePoint()
Check if we are a cachepoint



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.