Package net.sf.gilead.core.store.stateful

Examples of net.sf.gilead.core.store.stateful.AbstractStatefulProxyStore


      throw new RuntimeException("This service can only be called with Stateful proxy store !");
    }
   
  //  Compute key and get proxy information
  //
    AbstractStatefulProxyStore statefulProxyStore = (AbstractStatefulProxyStore) proxyStore;
    Class<?> pojoClass = null;
    try
    {
      pojoClass = Thread.currentThread().getContextClassLoader().loadClass(className);
    }
    catch(Exception ex)
    {
      throw new RuntimeException("Unknown class " + className, ex);
    }
    String key = statefulProxyStore.computeKey(pojoClass, id, propertyName);
   
    Map<String, Serializable> proxyInformations = statefulProxyStore.get(key);
   
  //  Analyze proxyInformations
  //
    if (proxyInformations == null)
    {
View Full Code Here


      throw new RuntimeException("This service can only be called with Stateful proxy store !");
    }
   
  //  Compute key and get proxy information
  //
    AbstractStatefulProxyStore statefulProxyStore = (AbstractStatefulProxyStore) proxyStore;
    Class<?> pojoClass = null;
    try
    {
      pojoClass = Thread.currentThread().getContextClassLoader().loadClass(className);
    }
    catch(Exception ex)
    {
      throw new RuntimeException("Unknown class " + className, ex);
    }
    String key = statefulProxyStore.computeKey(pojoClass, id, propertyName);
   
    Map<String, Serializable> proxyInformations = statefulProxyStore.get(key);
   
  //  Update proxyInformations
  //
    if (proxyInformations == null)
    {
      proxyInformations = new HashMap<String, Serializable>();
    }
    proxyInformations.put(ILightEntity.INITIALISED, true);
   
  //  Store proxy infos
  //
    statefulProxyStore.store(key, proxyInformations);
  }
View Full Code Here

TOP

Related Classes of net.sf.gilead.core.store.stateful.AbstractStatefulProxyStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.