Package org.jboss.errai.bus.client.framework

Examples of org.jboss.errai.bus.client.framework.ModelAdapter


    boolean usingJpa = Boolean.valueOf(configurator.getProperty("errai.persistence.using_jpa"));
    logger.info("Factory JNDI name : " + jndiName);
    logger.info("Use jboss specific utility :  " + useJbossUtil);
    logger.info("Using JPA  : " + usingJpa);

    final ModelAdapter modelAdapter = new HibernateAdapter(jndiName, useJbossUtil, usingJpa);
    final ResourceProvider<ModelAdapter> modelAdapterProvider = new ResourceProvider<ModelAdapter>() {

      public ModelAdapter get() {
        return modelAdapter;
      }
    };

    logger.info("Adding binding for: " + modelAdapter.getClass());
    config.addBinding(ModelAdapter.class, modelAdapterProvider);


    final NoopModelAdapter adapter = new NoopModelAdapter();
View Full Code Here


  boolean usingJpa = Boolean.valueOf(configurator.getProperty("errai.persistence.using_jpa"));
  logger.info("Factory JNDI name : "+jndiName);
  logger.info("Use jboss specific utility :  "+useJbossUtil);
  logger.info("Using JPA  : "+usingJpa);

  final ModelAdapter modelAdapter = new HibernateAdapter(jndiName, useJbossUtil, usingJpa);
  ResourceProvider<ModelAdapter> modelAdapterProvider = new ResourceProvider<ModelAdapter>() {

    public ModelAdapter get() {
      return modelAdapter;
    }
  };
 
  logger.info("Adding binding for: "+modelAdapter.getClass());
  config.addBinding(ModelAdapter.class, modelAdapterProvider);
  }
View Full Code Here

        public Object get() {
          return sessionFactory;
        }
      };

      final ModelAdapter hibenateAdapter = new HibernateAdapter(sessionFactory);
      ResourceProvider<ModelAdapter> modelAdapterProvider = new ResourceProvider<ModelAdapter>()
      {
        public ModelAdapter get()
        {
          return hibenateAdapter;
        }
      };
      logger.info("adding binding for: " + hibenateAdapter.getClass());
      config.addBinding(ModelAdapter.class, modelAdapterProvider);

      logger.info("adding binding for: " + sessionProvider.getClass());
      config.addBinding(Session.class, sessionProvider);
View Full Code Here

  boolean usingJpa = Boolean.valueOf(configurator.getProperty("errai.persistence.using_jpa"));
  logger.info("Factory JNDI name : "+jndiName);
  logger.info("Use jboss specific utility :  "+useJbossUtil);
  logger.info("Using JPA  : "+usingJpa);

  final ModelAdapter modelAdapter = new HibernateAdapter(jndiName, useJbossUtil, usingJpa);
  final ResourceProvider<ModelAdapter> modelAdapterProvider = new ResourceProvider<ModelAdapter>() {

    public ModelAdapter get() {
      return modelAdapter;
    }
  };
 
  logger.info("Adding binding for: "+modelAdapter.getClass());
  config.addBinding(ModelAdapter.class, modelAdapterProvider);


      final NoopModelAdapter adapter = new NoopModelAdapter();
View Full Code Here

TOP

Related Classes of org.jboss.errai.bus.client.framework.ModelAdapter

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.