com.ibm.commerce.registry
Interface ElementUpdate

All Known Implementing Classes:
AbstractManagedDynamicCacheRegistry

public interface ElementUpdate

This is an interface for extending a Registry to support update to individual element in the registry


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Method Summary
 java.lang.Object createKey(java.lang.String strKey)
          Creates a cache key from the string representation of the key.
 java.lang.String createKeyString( TypedProperty prop)
          Creates a string representation of a cache key based on the input properties.
 java.lang.Object getElement(java.lang.Object key)
          Gets the element to be refreshed from the cache.
 void update(java.lang.String action, java.lang.Object key)           Updates an element in the registry.
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values
Method Detail

update

public void update(java.lang.String action,
                   java.lang.Object key)
            throws java.lang.Exception
Updates an element in the registry.
Parameters:
action - The action to be applied to the cached element
key - The cache key
java.lang.Exception

createKeyString

public java.lang.String createKeyString(TypedProperty prop)
                                 throws java.lang.Exception
Creates a string representation of a cache key based on the input properties.
Parameters:
prop - The input properties
Returns:
The string representation of a cache key
java.lang.Exception

createKey

public java.lang.Object createKey(java.lang.String strKey)
                           throws java.lang.Exception
Creates a cache key from the string representation of the key.
Returns:
a cache key
java.lang.Exception

getElement

public java.lang.Object getElement(java.lang.Object key)
Gets the element to be refreshed from the cache.
Parameters:
key - The cache key for the element
Returns:
the cached element associated with the key