public class JedisExtension extends Object implements Extension
Extension providing CDI
integration for the Jedis
Redis client.| Constructor and Description |
|---|
JedisExtension()
Creates a new
JedisExtension. |
| Modifier and Type | Method and Description |
|---|---|
protected <T> void |
configure(Config config,
T object,
Class<? super T> type,
String instanceName)
|
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 supplied name should occur. |
public JedisExtension()
JedisExtension.protected Class<?> getConversionType(Class<?> type, String name) throws IntrospectionException
null Class representing the type
to which MicroProfile Config-based conversion of the property
identified by the supplied name should occur.type - the Class housing the property identified
by the supplied name; must not be nullname - the name of a property logically belonging to the
supplied type; must not be nullnull 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 foundIntrospectionException - if introspection fails;
overrides are not required to use introspectionNullPointerException - if type or name
is nullprotected <T> void configure(Config config, T object, Class<? super T> type, String instanceName) throws IntrospectionException, ReflectiveOperationException
Object by using the supplied
Config in some way.
This implementation uses java.beans facilities to
perform the configuration.
T - the type of object to configureconfig - the Config containing configuration; may
be null in which case no action will be takenobject - the Object to configure; may be null in which case no action will be takentype - one of the ancestral types of the supplied object; must not be nullinstanceName - the name of the instance to configure; may
be nullNullPointerException - if type is nullIntrospectionException - if introspection fails;
overrides of this method are not required to use introspectionReflectiveOperationException - if there was a problem
reflecting on the supplied Object's Class; overrides of this method are not
required to use reflectionCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.