com.levigo.jadice.document
Interface DocumentLayerCache


public interface DocumentLayerCache

This interface defines the contract a document layer cache implementation should fulfill.


Method Summary
 DocumentLayer getDocumentLayer(String name, int priority)
          Tries to retrieve a document layer with given name and priority from the cache.
 void putDocumentLayer(DocumentLayer layer)
          Stores the given layer in this cache.
 

Method Detail

getDocumentLayer

DocumentLayer getDocumentLayer(String name,
                               int priority)
Tries to retrieve a document layer with given name and priority from the cache.

Parameters:
name - the layer name
priority - the priority.
Returns:
the document layer with given name and priority or null
Throws:
IllegalArgumentException - if name is null or there is already a document layer with the given name in the cache, but the requested priority differs from the existing one's.

putDocumentLayer

void putDocumentLayer(DocumentLayer layer)
Stores the given layer in this cache.

Parameters:
layer - the layer to store


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.