org.gcube.application.framework.userprofiles.cache.factories
Class ProfileCacheEntryFactory

java.lang.Object
  extended by org.gcube.application.framework.userprofiles.cache.factories.ProfileCacheEntryFactory
All Implemented Interfaces:
net.sf.ehcache.constructs.blocking.CacheEntryFactory

public class ProfileCacheEntryFactory
extends Object
implements net.sf.ehcache.constructs.blocking.CacheEntryFactory

Author:
Rena - NKUA

Field Summary
protected static DocumentBuilderFactory dfactory
          Document factory instance
protected  org.gcube.common.core.utils.logging.GCUBELog logger
          Object logger.
protected static AtomicInteger profileId
          An atomic integer to get the Profile EPRs round-robin
 
Constructor Summary
ProfileCacheEntryFactory()
           
 
Method Summary
 Object createEntry(Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dfactory

protected static final DocumentBuilderFactory dfactory
Document factory instance


profileId

protected static AtomicInteger profileId
An atomic integer to get the Profile EPRs round-robin


logger

protected final org.gcube.common.core.utils.logging.GCUBELog logger
Object logger.

Constructor Detail

ProfileCacheEntryFactory

public ProfileCacheEntryFactory()
Method Detail

createEntry

public Object createEntry(Object key)
                   throws Exception
Specified by:
createEntry in interface net.sf.ehcache.constructs.blocking.CacheEntryFactory
Parameters:
key - a QueryString representing pairs of keys and values. Needed keys are: "vre", "username"
Returns:
the user profile as a DOM object (Document)
Throws:
Exception


Copyright © 2013. All Rights Reserved.