Let's preserve the ability for callers with uncomplicated needs to create and

initialize a persistence context in one fell swoop.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2445 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2008-09-24 19:09:17 +00:00
parent 462e92e324
commit 9837f96396
@@ -124,6 +124,22 @@ public class PersistenceContext
return _cache;
}
/**
* Creates an uninitialized persistence context. {@link #init} must later be called on this
* context to prepare it for operation.
*/
public PersistenceContext ()
{
}
/**
* Creates and initializes a persistence context. See {@link #init}.
*/
public PersistenceContext (String ident, ConnectionProvider conprov, CacheAdapter adapter)
{
init(ident, conprov, adapter);
}
/**
* Initializes this context with its connection provider and cache adapter.
*