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();