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

initialize a persistence context in one fell swoop.
This commit is contained in:
Michael Bayne
2008-09-24 19:09:17 +00:00
parent 0e68c8a599
commit 2c9c9b47c1
@@ -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.
*