org.jboss.cache.pojo.demo
Class PojoCacheModelDelegate

java.lang.Object
  extended by org.jboss.cache.pojo.demo.PojoCacheModelDelegate
All Implemented Interfaces:
CacheModelDelegate

public class PojoCacheModelDelegate
extends java.lang.Object
implements CacheModelDelegate

Model delegate implementation for JBossCache demo

Author:
Galder Zamarreno

Constructor Summary
PojoCacheModelDelegate()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PojoCacheModelDelegate

public PojoCacheModelDelegate()
Method Detail

setCacheShellVariable

public void setCacheShellVariable(java.lang.Object cache)
Description copied from interface: CacheModelDelegate
Sets the cache instance that will be used by users to interact with the real cache via the beanshell console.

Specified by:
setCacheShellVariable in interface CacheModelDelegate
Parameters:
cache - either PojoCache or Cache instance

getCacheShellVariable

public java.lang.Object getCacheShellVariable()
Description copied from interface: CacheModelDelegate
Gets the cache instance that will be used by users to interact with the real cache via the beanshell console.

Specified by:
getCacheShellVariable in interface CacheModelDelegate
Returns:
either PojoCache or Cache instance

getGenericCache

public Cache getGenericCache()
Description copied from interface: CacheModelDelegate
Gets the Cache instance that the GUI will use to populate the fiels in the GUI.

Specified by:
getGenericCache in interface CacheModelDelegate
Returns:
returns an instance of Cache