refactoring

pull/1888/head
Nikita Koksharov 6 years ago
parent 35ae834659
commit b34a9da9f3

@ -21,8 +21,8 @@ import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.hibernate.cache.CacheException;
import org.hibernate.engine.jndi.internal.JndiServiceImpl;
import org.hibernate.internal.util.config.ConfigurationHelper;
import org.hibernate.internal.util.jndi.JndiHelper;
import org.redisson.api.RedissonClient;
/**
@ -45,7 +45,7 @@ public class JndiRedissonRegionFactory extends RedissonRegionFactory {
throw new CacheException(JNDI_NAME + " property not set");
}
Properties jndiProperties = JndiHelper.extractJndiProperties(properties);
Properties jndiProperties = JndiServiceImpl.extractJndiProperties(properties);
InitialContext context = null;
try {
context = new InitialContext(jndiProperties);

@ -21,8 +21,8 @@ import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.hibernate.cache.CacheException;
import org.hibernate.engine.jndi.internal.JndiServiceImpl;
import org.hibernate.internal.util.config.ConfigurationHelper;
import org.hibernate.internal.util.jndi.JndiHelper;
import org.redisson.api.RedissonClient;
/**
@ -45,7 +45,7 @@ public class JndiRedissonRegionFactory extends RedissonRegionFactory {
throw new CacheException(JNDI_NAME + " property not set");
}
Properties jndiProperties = JndiHelper.extractJndiProperties(properties);
Properties jndiProperties = JndiServiceImpl.extractJndiProperties(properties);
InitialContext context = null;
try {
context = new InitialContext(jndiProperties);

@ -21,6 +21,7 @@ import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.hibernate.cache.CacheException;
import org.hibernate.engine.jndi.internal.JndiServiceImpl;
import org.hibernate.internal.util.config.ConfigurationHelper;
import org.hibernate.internal.util.jndi.JndiHelper;
import org.redisson.api.RedissonClient;
@ -45,7 +46,7 @@ public class JndiRedissonRegionFactory extends RedissonRegionFactory {
throw new CacheException(JNDI_NAME + " property not set");
}
Properties jndiProperties = JndiHelper.extractJndiProperties(properties);
Properties jndiProperties = JndiServiceImpl.extractJndiProperties(properties);
InitialContext context = null;
try {
context = new InitialContext(jndiProperties);

@ -22,8 +22,8 @@ import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.hibernate.cache.CacheException;
import org.hibernate.engine.jndi.internal.JndiServiceImpl;
import org.hibernate.internal.util.config.ConfigurationHelper;
import org.hibernate.internal.util.jndi.JndiHelper;
import org.redisson.api.RedissonClient;
/**
@ -46,7 +46,7 @@ public class JndiRedissonRegionFactory extends RedissonRegionFactory {
throw new CacheException(JNDI_NAME + " property not set");
}
Properties jndiProperties = JndiHelper.extractJndiProperties(properties);
Properties jndiProperties = JndiServiceImpl.extractJndiProperties(properties);
InitialContext context = null;
try {
context = new InitialContext(jndiProperties);

Loading…
Cancel
Save