Feature/remove jndi dependencies

@timf @labisso This creates a central factory for dasein persist objects called DaseinPersist which takes a DataSource as an argument and can produce Transaction and PersistentCache objects.

It also removes pretty much everything that had to do with Riak and some other cruft.
indeed. . . cut and paste fail

On Thu, Nov 20, 2014 at 1:35 PM, David LaBissoniere <
notifications@github.com> wrote:

> In src/main/java/org/dasein/persist/DaseinPersist.java:
>
> > +/**
> > + * Factory for creating and maintaining Persistent Caches.
> > + *
> > + * @author Tom Howe
> > + */
> > +@SuppressWarnings("unused")
> > +public class DaseinPersist {
> > +    private final Logger logger = LoggerFactory.getLogger(DaseinPersist.class);
> > +    private final HashMap<String, PersistentCache<? extends CachedItem>> caches = new HashMap<String, PersistentCache<? extends CachedItem>>();
> > +    private final DataSource dataSource;
> > +
> > +    public DaseinPersist(DataSource ds) {
> > +        this.dataSource = ds;
> > +    }
> > +
> > +    public Transaction getInstance(boolean readOnly) {
>
> shouldn't these be called getTransaction() or something more specific?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/enStratus/dasein-persist/pull/2/files#r20671271>.
>



-- 
Tom Howe
Bender of Turtles