added synchronized to getObjectInstance()

pull/539/head
Nitin 9 years ago
parent a40e4856c9
commit f40a13b5be

@ -40,7 +40,7 @@ import com.zaxxer.hikari.util.PropertyElf;
public class HikariJNDIFactory implements ObjectFactory public class HikariJNDIFactory implements ObjectFactory
{ {
@Override @Override
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception synchronized public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception
{ {
// We only know how to deal with <code>javax.naming.Reference</code> that specify a class name of "javax.sql.DataSource" // We only know how to deal with <code>javax.naming.Reference</code> that specify a class name of "javax.sql.DataSource"
if (!(obj instanceof Reference)) { if (!(obj instanceof Reference)) {

Loading…
Cancel
Save