org.jboss.errai.jpa.client.local.backend
Interface StorageBackendFactory
public interface StorageBackendFactory
Creates instances of StorageBackend, tying each new instance to a particular
ErraiEntityManager. This factory class exists to break the reference cycle
between WebStorageBackend instances (which want a final reference to an
ErraiEntityManager) and ErraiEntityManager (which wants a final reference to
its StorageBackend).
- Author:
- Jonathan Fuerth
createInstanceFor
StorageBackend createInstanceFor(ErraiEntityManager em)
- Creates a new instance of some implementation of StorageBackend which is
permanently bound to the given ErraiEntityManager.
- Parameters:
em
- The EntityManager the StorageBackend serves.
- Returns:
- a new instance of some implementation of StorageBackend.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.