org.jboss.cache.demo
Interface CacheModelDelegate

All Known Implementing Classes:
JBossCacheModelDelegate, PojoCacheModelDelegate

public interface CacheModelDelegate

Delegate that hides cache model details for the demo GUI

Author:
Galder Zamarreno

Method Summary
 java.lang.Object getCacheShellVariable()
          Gets the cache instance that will be used by users to interact with the real cache via the beanshell console.
 Cache getGenericCache()
          Gets the Cache instance that the GUI will use to populate the fiels in the GUI.
 void setCacheShellVariable(java.lang.Object cache)
          Sets the cache instance that will be used by users to interact with the real cache via the beanshell console.
 

Method Detail

setCacheShellVariable

void setCacheShellVariable(java.lang.Object cache)
Sets the cache instance that will be used by users to interact with the real cache via the beanshell console.

Parameters:
cache - either PojoCache or Cache instance

getCacheShellVariable

java.lang.Object getCacheShellVariable()
Gets the cache instance that will be used by users to interact with the real cache via the beanshell console.

Returns:
either PojoCache or Cache instance

getGenericCache

Cache getGenericCache()
Gets the Cache instance that the GUI will use to populate the fiels in the GUI.

Returns:
returns an instance of Cache