Class JedisExtension
java.lang.Object
io.helidon.integrations.jedis.cdi.JedisExtension
- All Implemented Interfaces:
Extension
An
Extension providing CDI
integration for the Jedis
Redis client.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> voidprotected Class<?>getConversionType(Class<?> type, String name) Returns a non-nullClassrepresenting the type to which MicroProfile Config-based conversion of the property identified by the suppliednameshould occur.
-
Constructor Details
-
JedisExtension
public JedisExtension()Creates a newJedisExtension.
-
-
Method Details
-
getConversionType
Returns a non-nullClassrepresenting the type to which MicroProfile Config-based conversion of the property identified by the suppliednameshould occur.- Parameters:
type- theClasshousing the property identified by the suppliedname; must not benullname- the name of a property logically belonging to the suppliedtype; must not benull- Returns:
- a non-
nullClassrepresenting the type to which MicroProfile Config-based conversion of the property identified by the suppliednameshould occur;String.classif no conversion type could be found - Throws:
IntrospectionException- if introspection fails; overrides are not required to use introspectionNullPointerException- iftypeornameisnull
-
configure
protected <T> void configure(Config config, T object, Class<? super T> type, String instanceName) throws IntrospectionException, ReflectiveOperationException Configures the suppliedObjectby using the suppliedConfigin some way.This implementation uses
java.beansfacilities to perform the configuration.- Type Parameters:
T- the type of object to configure- Parameters:
config- theConfigcontaining configuration; may benullin which case no action will be takenobject- theObjectto configure; may benullin which case no action will be takentype- one of the ancestral types of the suppliedobject; must not benullinstanceName- the name of the instance to configure; may benull- Throws:
NullPointerException- iftypeisnullIntrospectionException- if introspection fails; overrides of this method are not required to use introspectionReflectiveOperationException- if there was a problem reflecting on the suppliedObject'sClass; overrides of this method are not required to use reflection
-