Renaming CachingSessionDataStoreFactory

This commit is contained in:
Jan Bartel 2016-06-08 09:35:48 +10:00
parent 66ce47923e
commit 191bb2d307
1 changed files with 13 additions and 9 deletions

View File

@ -30,30 +30,35 @@ public class CachingSessionDataStoreFactory extends AbstractSessionDataStoreFact
/** /**
* The SessionDataStore that will store session data. * The SessionDataStore that will store session data.
*/ */
protected SessionDataStoreFactory _backingSessionStoreFactory; protected SessionDataStoreFactory _sessionStoreFactory;
protected SessionDataMapFactory _mapFactory; protected SessionDataMapFactory _mapFactory;
/**
* @return the SessionDataMapFactory
*/
public SessionDataMapFactory getMapFactory() public SessionDataMapFactory getMapFactory()
{ {
return _mapFactory; return _mapFactory;
} }
public void setMapFactory(SessionDataMapFactory map) /**
* @param mapFactory the SessionDataMapFactory
*/
public void setSessionDataMapFactory(SessionDataMapFactory mapFactory)
{ {
_mapFactory = map; _mapFactory = mapFactory;
} }
/** /**
* @param factory The factory for the actual SessionDataStore that the * @param factory The factory for the actual SessionDataStore that the
* CachingSessionDataStore will delegate to * CachingSessionDataStore will delegate to
*/ */
public void setBackingSessionStoreFactory (SessionDataStoreFactory factory) public void setSessionStoreFactory (SessionDataStoreFactory factory)
{ {
_backingSessionStoreFactory = factory; _sessionStoreFactory = factory;
} }
/** /**
@ -62,8 +67,7 @@ public class CachingSessionDataStoreFactory extends AbstractSessionDataStoreFact
@Override @Override
public SessionDataStore getSessionDataStore(SessionHandler handler) throws Exception public SessionDataStore getSessionDataStore(SessionHandler handler) throws Exception
{ {
// TODO configure and create a cache! return new CachingSessionDataStore(_mapFactory.getSessionDataMap(), _sessionStoreFactory.getSessionDataStore(handler));
return new CachingSessionDataStore(_mapFactory.getSessionDataMap(), _backingSessionStoreFactory.getSessionDataStore(handler));
} }
} }