uk.co.mullsoft.jean.components
Interface Cacheable

All Superinterfaces:
java.io.Serializable

public interface Cacheable
extends java.io.Serializable

Author:
mike.curtis

Method Summary
 Cacheable get(java.io.Serializable selector)
          get a new object of this class.
 byte[] getData()
          return the persistent part as a byte[]
 java.lang.String getPath()
          return a path string to be used as a relative path to a file from the cache root directory, it must begin with a file separator character
 java.io.Serializable getSelector()
          return an identifying object
 void setData(byte[] data)
          set the persistent part
 

Method Detail

getPath

java.lang.String getPath()
return a path string to be used as a relative path to a file from the cache root directory, it must begin with a file separator character

Returns:
a relative path string beginning with a file separator character

getData

byte[] getData()
return the persistent part as a byte[]

Returns:
the persistent part as a byte[]

setData

void setData(byte[] data)
set the persistent part

Parameters:
data - the new data, this may be null when the selector part only is maintained in internal store.

getSelector

java.io.Serializable getSelector()
return an identifying object

Returns:
an identifying object

get

Cacheable get(java.io.Serializable selector)
get a new object of this class.

Parameters:
selector - sufficient details of the class to enable one to be selected or created