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
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> void
protected Class<?>
getConversionType
(Class<?> type, String name) Returns a non-null
Class
representing the type to which MicroProfile Config-based conversion of the property identified by the suppliedname
should occur.
-
Constructor Details
-
JedisExtension
public JedisExtension()Creates a newJedisExtension
.
-
-
Method Details
-
getConversionType
Returns a non-null
Class
representing the type to which MicroProfile Config-based conversion of the property identified by the suppliedname
should occur.- Parameters:
type
- theClass
housing the property identified by the suppliedname
; must not benull
name
- the name of a property logically belonging to the suppliedtype
; must not benull
- Returns:
- a non-
null
Class
representing the type to which MicroProfile Config-based conversion of the property identified by the suppliedname
should occur;String.class
if no conversion type could be found - Throws:
IntrospectionException
- if introspection fails; overrides are not required to use introspectionNullPointerException
- iftype
orname
isnull
-
configure
protected <T> void configure(Config config, T object, Class<? super T> type, String instanceName) throws IntrospectionException, ReflectiveOperationException Configures the suppliedObject
by using the suppliedConfig
in some way.This implementation uses
java.beans
facilities to perform the configuration.- Type Parameters:
T
- the type of object to configure- Parameters:
config
- theConfig
containing configuration; may benull
in which case no action will be takenobject
- theObject
to configure; may benull
in which case no action will be takentype
- one of the ancestral types of the suppliedobject
; must not benull
instanceName
- the name of the instance to configure; may benull
- Throws:
NullPointerException
- iftype
isnull
IntrospectionException
- 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
-