java.lang.Object
io.helidon.integrations.jedis.cdi.JedisExtension
All Implemented Interfaces:
Extension

public class JedisExtension extends Object implements Extension
An Extension providing CDI integration for the Jedis Redis client.
See Also:
  • Constructor Details

    • JedisExtension

      public JedisExtension()
      Creates a new JedisExtension.
  • Method Details

    • getConversionType

      protected Class<?> getConversionType(Class<?> type, String name) throws IntrospectionException
      Returns a non-null Class representing the type to which MicroProfile Config-based conversion of the property identified by the supplied name should occur.
      Parameters:
      type - the Class housing the property identified by the supplied name; must not be null
      name - the name of a property logically belonging to the supplied type; must not be null
      Returns:
      a non-null Class representing the type to which MicroProfile Config-based conversion of the property identified by the supplied name should occur; String.class if no conversion type could be found
      Throws:
      IntrospectionException - if introspection fails; overrides are not required to use introspection
      NullPointerException - if type or name is null
    • configure

      protected <T> void configure(Config config, T object, Class<? super T> type, String instanceName) throws IntrospectionException, ReflectiveOperationException
      Configures the supplied Object by using the supplied Config in some way.

      This implementation uses java.beans facilities to perform the configuration.

      Type Parameters:
      T - the type of object to configure
      Parameters:
      config - the Config containing configuration; may be null in which case no action will be taken
      object - the Object to configure; may be null in which case no action will be taken
      type - one of the ancestral types of the supplied object; must not be null
      instanceName - the name of the instance to configure; may be null
      Throws:
      NullPointerException - if type is null
      IntrospectionException - if introspection fails; overrides of this method are not required to use introspection
      ReflectiveOperationException - if there was a problem reflecting on the supplied Object's Class; overrides of this method are not required to use reflection