Package org.redisson
Class JndiRedissonFactory
java.lang.Object
org.redisson.JndiRedissonFactory
- All Implemented Interfaces:
ObjectFactory
Redisson object factory used to register instance in JNDI registry.
- Author:
- Nikita Koksharov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected RedissonClient
buildClient
(String configPath) getObjectInstance
(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment)
-
Constructor Details
-
JndiRedissonFactory
public JndiRedissonFactory()
-
-
Method Details
-
getObjectInstance
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception- Specified by:
getObjectInstance
in interfaceObjectFactory
- Throws:
Exception
-
buildClient
- Throws:
NamingException
-