Class JedisExtension
- java.lang.Object
-
- io.helidon.integrations.jedis.cdi.JedisExtension
-
- All Implemented Interfaces:
Extension
public class JedisExtension extends Object implements Extension
AnExtensionproviding CDI integration for the Jedis Redis client.
-
-
Constructor Summary
Constructors Constructor Description JedisExtension()Creates a newJedisExtension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> voidconfigure(Config config, T object, Class<? super T> type, String instanceName)protected 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 Detail
-
JedisExtension
public JedisExtension()
Creates a newJedisExtension.
-
-
Method Detail
-
getConversionType
protected Class<?> getConversionType(Class<?> type, String name) throws IntrospectionException
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
-
-