com.googlecode.fascinator.portal.services.cache
Class JythonCacheEntryFactory
java.lang.Object
com.googlecode.fascinator.portal.services.cache.JythonCacheEntryFactory
- All Implemented Interfaces:
- net.sf.ehcache.constructs.blocking.CacheEntryFactory
public class JythonCacheEntryFactory
- extends Object
- implements net.sf.ehcache.constructs.blocking.CacheEntryFactory
Factory class for instantiating jython scripts to be cached.
- Author:
- Oliver Lucido
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JythonCacheEntryFactory
public JythonCacheEntryFactory(PortalManager portalManager,
VelocityService velocityService,
ScriptingServices scriptingServices)
- Constructs the factory.
- Parameters:
portalManager - a PortalManager instancevelocityService - a VelocityService instancescriptingServices - a ScriptingServices instance
createEntry
public Object createEntry(Object key)
throws Exception
- Creates a jython object instance for the script cache.
- Specified by:
createEntry in interface net.sf.ehcache.constructs.blocking.CacheEntryFactory
- Parameters:
key - the path to the jython script
- Returns:
- an instantiated jython object
- Throws:
Exception - if the jython object failed to be instantiated
Copyright © 2009-2012. All Rights Reserved.