Package net.sf.gilead.core

Examples of net.sf.gilead.core.PersistentBeanManager


  //  Bean Manager initialization
  //
    HibernateUtil persistenceUtil = new HibernateUtil();
    persistenceUtil.setSessionFactory(HibernateContext.getSessionFactory());

    PersistentBeanManager beanManager = new PersistentBeanManager();
    beanManager.setPersistenceUtil(persistenceUtil);
    beanManager.setProxyStore(new StatelessProxyStore());
    setBeanManager(beanManager);
   
  //  Init DB if needed
  //
    if (countUsers() == 0)
View Full Code Here


   */
  public static PersistentBeanManager initGwtStatelessBeanManager(IPersistenceUtil persistenceUtil)
  {
    if (PersistentBeanManager.getInstance().getPersistenceUtil() == null)
    {
      PersistentBeanManager beanManager = PersistentBeanManager.getInstance();
      beanManager.setPersistenceUtil(persistenceUtil);
     
      StatelessProxyStore proxyStore = new StatelessProxyStore();
      proxyStore.setProxySerializer(new GwtProxySerialization());
      beanManager.setProxyStore(proxyStore);
     
      beanManager.setClassMapper(null);
    }
   
    return PersistentBeanManager.getInstance();
  }
View Full Code Here

 
  public static PersistentBeanManager initGwtProxyBeanManager(IPersistenceUtil persistenceUtil)
  {
    if (PersistentBeanManager.getInstance().getPersistenceUtil() == null)
    {
      PersistentBeanManager beanManager = PersistentBeanManager.getInstance();
      beanManager.setPersistenceUtil(persistenceUtil);
     
      StatelessProxyStore proxyStore = new StatelessProxyStore();
      proxyStore.setProxySerializer(new GwtProxySerialization());
      beanManager.setProxyStore(proxyStore);
     
      ProxyClassMapper classMapper = new ProxyClassMapper();
      classMapper.setPersistenceUtil(persistenceUtil);
      beanManager.setClassMapper(classMapper);
    }
   
    return PersistentBeanManager.getInstance();
  }
View Full Code Here

        // TODO: This should actually be a session bound proxy store instead of a global one
        final InMemoryProxyStore proxyStore = new InMemoryProxyStore();
        proxyStore.setPersistenceUtil(persistenceUtil);

        beanManager = new PersistentBeanManager();
        beanManager.setPersistenceUtil(persistenceUtil);
        beanManager.setProxyStore(proxyStore);
    }
View Full Code Here

TOP

Related Classes of net.sf.gilead.core.PersistentBeanManager

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.