public abstract class AbstractAnnotationConfigSupport extends Object implements BeanClassLoaderAware, BeanFactoryAware, EnvironmentAware
ClassLoader,
Annotation,
AnnotatedElement,
BeanClassLoaderAware,
BeanFactory,
BeanFactoryAware,
AnnotatedBeanDefinition,
ConfigurableBeanFactory,
AbstractBeanDefinition,
BeanDefinitionRegistry,
EnvironmentAware,
AnnotationAttributes,
Environment,
AnnotationMetadata,
MethodMetadata,
EvaluationContext| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AbstractAnnotationConfigSupport.TypeResolver<T>
AbstractAnnotationConfigSupport.TypeResolver is a FunctionalInterface defining a contract to encapsulate logic
used to resolve a particular type. |
| Modifier and Type | Field and Description |
|---|---|
protected static Supplier<ClassLoader> |
CURRENT_THREAD_CONTEXT_CLASS_LOADER |
protected static Set<Integer> |
INFRASTRUCTURE_ROLES |
protected static String |
ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE |
protected static String |
ORG_SPRINGFRAMEWORK_PACKAGE |
protected static String |
SPRING_DATA_GEMFIRE_PROPERTY_PREFIX |
| Constructor and Description |
|---|
AbstractAnnotationConfigSupport()
Constructs a new instance of
AbstractAnnotationConfigSupport. |
AbstractAnnotationConfigSupport(BeanFactory beanFactory)
Constructs a new instance of
AbstractAnnotationConfigSupport initialized with the given, non-required
BeanFactory. |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
arrayOfPropertyNamesFor(String propertyNamePrefix) |
protected List<String> |
arrayOfPropertyNamesFor(String propertyNamePrefix,
String propertyNameSuffix) |
protected String |
asArrayProperty(String propertyNamePrefix,
int index,
String propertyNameSuffix) |
protected String |
cacheClientProperty(String propertyNameSuffix) |
protected String |
cacheCompressionProperty(String propertyNameSuffix) |
protected String |
cacheOffHeapProperty(String propertyNameSuffix) |
protected String |
cachePeerProperty(String propertyNameSuffix) |
protected String |
cacheProperty(String propertyNameSuffix) |
protected String |
cacheServerProperty(String propertyNameSuffix) |
protected String |
clusterProperty(String propertyNameSuffix) |
protected String |
diskStoreProperty(String propertyNameSuffix) |
protected String |
entitiesProperty(String propertyNameSuffix) |
protected String |
gatewayReceiverProperty(String propertyNameSuffix) |
protected String |
gatewaySenderProperty(String propertyNameSuffix) |
protected AnnotationAttributes |
getAnnotationAttributes(Annotation annotation)
Returns the
AnnotationAttributes for the given Annotation. |
protected AnnotationAttributes |
getAnnotationAttributes(AnnotationMetadata importingClassMetadata)
Returns
AnnotationAttributes for the declared getAnnotationTypeName(). |
protected AnnotationAttributes |
getAnnotationAttributes(AnnotationMetadata importingClassMetadata,
String annotationName)
|
protected abstract Class<? extends Annotation> |
getAnnotationType()
Returns the cache application
Annotation type pertaining to this configuration. |
protected String |
getAnnotationTypeName()
Returns the fully-qualified
class name of the cache application
Annotation type. |
protected String |
getAnnotationTypeSimpleName()
Returns the simple
class name of the cache application
Annotation type. |
protected ClassLoader |
getBeanClassLoader()
Returns a reference to the
ClassLoader use by the Spring BeanFactory to load classes
for bean definitions. |
protected BeanFactory |
getBeanFactory()
Returns a reference to the Spring
BeanFactory in the current application context. |
protected Environment |
getEnvironment()
Returns a reference to the Spring
Environment. |
protected EvaluationContext |
getEvaluationContext()
Returns a reference to the
EvaluationContext used to evaluate SpEL expressions. |
protected org.slf4j.Logger |
getLogger()
Returns a reference to the
Logger used by this class to log messages. |
static boolean |
hasValue(Number value)
Determines whether the given
Number has value. |
static boolean |
hasValue(Object value)
Determines whether the given
Object has value. |
static boolean |
hasValue(String value)
Determines whether the given
String has value. |
protected String |
httpServiceProperty(String propertyNameSuffix) |
protected boolean |
isAnnotationPresent(AnnotationMetadata importingClassMetadata)
Determines whether the given
type meta-data for a particular Class
is annotated with the declared getAnnotationTypeName(). |
protected boolean |
isAnnotationPresent(AnnotationMetadata importingClassMetadata,
String annotationName)
Determines whether the given
type meta-data for a particular Class
is annotated with the given Annotation defined by name. |
protected boolean |
isNotInfrastructureBean(BeanDefinition beanDefinition)
Null-safe method used to determine whether the bean defined by the given
BeanDefinition
is a Spring container provided infrastructure bean. |
protected boolean |
isNotInfrastructureBean(Object bean)
Null-safe method used to determine whether the given
bean is a Spring container provided
infrastructure bean. |
protected boolean |
isNotInfrastructureClass(BeanDefinition beanDefinition)
Null-safe method used to determine whether the bean defined by the given
BeanDefinition
is a Spring container infrastructure bean based on the bean's class name. |
protected boolean |
isNotInfrastructureRole(BeanDefinition beanDefinition)
Null-safe method to determines whether the bean defined by the given
BeanDefinition
is a Spring container infrastructure bean based on the bean's role. |
protected boolean |
isUserLevelMethod(Method method)
Determines whether the given
Method was declared and defined by the user. |
protected String |
locatorProperty(String propertyNameSuffix) |
protected void |
logDebug(String message,
Object... args)
|
protected void |
logDebug(Supplier<String> message)
|
protected void |
logError(String message,
Object... args)
|
protected void |
logError(Supplier<String> message)
|
protected String |
loggingProperty(String propertyNameSuffix) |
protected void |
logInfo(String message,
Object... args)
|
protected void |
logInfo(Supplier<String> message)
|
protected void |
logWarning(String message,
Object... args)
|
protected void |
logWarning(Supplier<String> message)
|
protected String |
managementProperty(String propertyNameSuffix) |
protected String |
managerProperty(String propertyNameSuffix) |
protected String |
memcachedServiceProperty(String propertyNameSuffix) |
protected String |
namedCacheServerProperty(String name,
String propertyNameSuffix) |
protected String |
namedDiskStoreProperty(String name,
String propertyNameSuffix) |
protected String |
namedGatewaySenderProperty(String name,
String propertyNameSuffix) |
protected String |
namedPoolProperty(String name,
String propertyNameSuffix) |
protected EvaluationContext |
newEvaluationContext(BeanFactory beanFactory)
Constructs, configures and initializes a new instance of an
EvaluationContext. |
protected org.slf4j.Logger |
newLogger()
Constructs a new instance of
Logger to log statements printed by Spring Data for Apache Geode. |
protected String |
pdxProperty(String propertyNameSuffix) |
protected String |
poolProperty(String propertyNameSuffix) |
protected String |
propertyName(String propertyNameSuffix)
Returns the fully-qualified
property name. |
protected String |
redisServiceProperty(String propertyNameSuffix) |
protected AbstractBeanDefinition |
register(AbstractBeanDefinition beanDefinition)
|
protected AbstractBeanDefinition |
register(AbstractBeanDefinition beanDefinition,
BeanDefinitionRegistry registry)
Registers the
AbstractBeanDefinition with the given BeanDefinitionRegistry using a generated
bean name. |
protected <T> T |
requireProperty(String propertyName,
Class<T> type)
Resolves the value for the given property identified by
name from the Spring Environment
as an instance of the specified type. |
protected <A extends Annotation> |
resolveAnnotation(AnnotatedElement annotatedElement,
Class<A> annotationType)
|
protected Optional<Class<?>> |
resolveBeanClass(BeanDefinition beanDefinition,
BeanDefinitionRegistry registry)
Resolves the
type of the bean defined by the given BeanDefinition. |
protected Optional<Class<?>> |
resolveBeanClass(BeanDefinition beanDefinition,
ClassLoader classLoader)
Resolves the
type of the bean defined by the given BeanDefinition. |
protected Optional<Class<?>> |
resolveBeanClass(BeanDefinition beanDefinition,
ConfigurableBeanFactory beanFactory)
Resolves the
type of the bean defined by the given BeanDefinition. |
protected ClassLoader |
resolveBeanClassLoader()
|
protected ClassLoader |
resolveBeanClassLoader(BeanDefinitionRegistry registry)
Attempts to resolve the
ClassLoader used by the BeanDefinitionRegistry
to load Class definitions of the beans defined in the registry. |
protected ClassLoader |
resolveBeanClassLoader(ConfigurableBeanFactory beanFactory)
Attempts to resolve the
ClassLoader used by the ConfigurableBeanFactory
to load Class definitions of the beans created by the factory. |
protected Optional<String> |
resolveBeanClassName(BeanDefinition beanDefinition)
Resolves the class type name of the bean defined by the given
BeanDefinition. |
protected Boolean |
resolveProperty(String propertyName,
Boolean defaultValue)
|
protected <T> T |
resolveProperty(String propertyName,
Class<T> targetType)
Attempts to resolve the property with the given
name from the Spring Environment. |
protected <T> T |
resolveProperty(String propertyName,
Class<T> targetType,
T defaultValue)
Attempts to resolve the property with the given
name from the Spring Environment. |
protected Double |
resolveProperty(String propertyName,
Double defaultValue)
|
protected Float |
resolveProperty(String propertyName,
Float defaultValue)
|
protected Integer |
resolveProperty(String propertyName,
Integer defaultValue)
|
protected Long |
resolveProperty(String propertyName,
Long defaultValue)
|
protected String |
resolveProperty(String propertyName,
String defaultValue)
|
protected <T> Class<T> |
safeResolveType(AbstractAnnotationConfigSupport.TypeResolver<T> typeResolver)
Safely resolves a
type returned by the given AbstractAnnotationConfigSupport.TypeResolver where the type
resolution might result in a ClassNotFoundException or NoClassDefFoundError. |
protected String |
securityProperty(String propertyNameSuffix) |
protected String |
serviceProperty(String propertyNameSuffix) |
void |
setBeanClassLoader(ClassLoader beanClassLoader) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setEnvironment(Environment environment)
Sets a reference to the Spring
Environment. |
protected String |
sslProperty(String propertyNameSuffix) |
protected String |
statsProperty(String propertyNameSuffix) |
protected static final String ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE
protected static final String ORG_SPRINGFRAMEWORK_PACKAGE
protected static final String SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
protected static final Supplier<ClassLoader> CURRENT_THREAD_CONTEXT_CLASS_LOADER
public AbstractAnnotationConfigSupport()
AbstractAnnotationConfigSupport.public AbstractAnnotationConfigSupport(@Nullable BeanFactory beanFactory)
AbstractAnnotationConfigSupport initialized with the given, non-required
BeanFactory.beanFactory - reference to the Spring BeanFactory.BeanFactory,
newEvaluationContext(BeanFactory),
newLogger()protected EvaluationContext newEvaluationContext(@Nullable BeanFactory beanFactory)
EvaluationContext.beanFactory - reference to the Spring BeanFactory.EvaluationContext.BeanFactory,
EvaluationContext,
getBeanFactory()@NonNull protected org.slf4j.Logger newLogger()
Logger to log statements printed by Spring Data for Apache Geode.Logger.LoggerFactory.getLogger(Class),
Loggerprotected boolean isAnnotationPresent(@NonNull AnnotationMetadata importingClassMetadata)
type meta-data for a particular Class
is annotated with the declared getAnnotationTypeName().importingClassMetadata - type meta-data for a particular Class.Class is annotated with
the declared getAnnotationTypeName().isAnnotationPresent(AnnotationMetadata, String),
getAnnotationTypeName(),
AnnotationMetadataprotected boolean isAnnotationPresent(@NonNull AnnotationMetadata importingClassMetadata, @NonNull String annotationName)
type meta-data for a particular Class
is annotated with the given Annotation defined by name.importingClassMetadata - type meta-data for a particular Class.annotationName - name of the Annotation of interests.Class is annotated with
the given Annotation defined by name.AnnotationMetadata@NonNull protected AnnotationAttributes getAnnotationAttributes(@NonNull Annotation annotation)
AnnotationAttributes for the given Annotation.annotation - Annotation to get the AnnotationAttributes for.AnnotationAttributes for the given Annotation.AnnotationAttributes,
Annotation@NonNull protected AnnotationAttributes getAnnotationAttributes(@NonNull AnnotationMetadata importingClassMetadata)
AnnotationAttributes for the declared getAnnotationTypeName().importingClassMetadata - type meta-data for a particular Class.AnnotationAttributes for the declared getAnnotationTypeName().AnnotationAttributes,
AnnotationMetadata,
getAnnotationAttributes(AnnotationMetadata, String),
getAnnotationTypeName()@NonNull protected AnnotationAttributes getAnnotationAttributes(@NonNull AnnotationMetadata importingClassMetadata, @NonNull String annotationName)
importingClassMetadata - type meta-data for a particular Class.annotationName - name of the Annotation of interests.AnnotationAttributes for the given named Annotation.AnnotationAttributes,
AnnotationMetadata@NonNull protected abstract Class<? extends Annotation> getAnnotationType()
Annotation type pertaining to this configuration.Annotation type used by this application.@NonNull protected String getAnnotationTypeName()
class name of the cache application
Annotation type.class name of the cache application
Annotation type.Class.getName(),
getAnnotationType()@NonNull protected String getAnnotationTypeSimpleName()
class name of the cache application
Annotation type.class name of the cache application
Annotation type.Class.getSimpleName(),
getAnnotationType()protected boolean isNotInfrastructureBean(@Nullable Object bean)
bean is a Spring container provided
infrastructure bean.bean - Object to evaluate.bean is not a Spring container provided infrastructure bean.isNotInfrastructureClass(String),
Object.getClass(),
Class.getName()protected boolean isNotInfrastructureBean(@Nullable BeanDefinition beanDefinition)
BeanDefinition
is a Spring container provided infrastructure bean.beanDefinition - BeanDefinition to evaluate.BeanDefinition is not a Spring container
provided infrastructure bean.BeanDefinition,
isNotInfrastructureClass(BeanDefinition),
isNotInfrastructureRole(BeanDefinition)protected boolean isNotInfrastructureClass(@Nullable BeanDefinition beanDefinition)
BeanDefinition
is a Spring container infrastructure bean based on the bean's class name.beanDefinition - BeanDefinition of the bean to evaluate.BeanDefinition is not a Spring container
infrastructure bean. Returns false if the bean class name cannot be resolved.BeanDefinition,
resolveBeanClassName(BeanDefinition),
isNotInfrastructureClass(String)protected boolean isNotInfrastructureRole(@Nullable BeanDefinition beanDefinition)
BeanDefinition
is a Spring container infrastructure bean based on the bean's role.beanDefinition - BeanDefinition of the bean to evaluate.BeanDefinition is not a Spring container
infrastructure bean.BeanDefinitionprotected boolean isUserLevelMethod(@Nullable Method method)
Method was declared and defined by the user.
A Method is considered a user-level Method if the Method is not
an Object class method, is a Bridge Method
or is not Method.isSynthetic() nor a Groovy method.public void setBeanClassLoader(@Nullable ClassLoader beanClassLoader)
setBeanClassLoader in interface BeanClassLoaderAware@Nullable protected ClassLoader getBeanClassLoader()
ClassLoader use by the Spring BeanFactory to load classes
for bean definitions.ClassLoader used by the Spring BeanFactory to load classes for bean definitions.setBeanClassLoader(ClassLoader)@NonNull protected ClassLoader resolveBeanClassLoader()
ClassLoader or the
Thread Context ClassLoader.Thread.getContextClassLoader(),
getBeanClassLoader()public void setBeanFactory(@Nullable BeanFactory beanFactory) throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansException@NonNull protected BeanFactory getBeanFactory()
BeanFactory in the current application context.BeanFactory.IllegalStateException - if the Spring BeanFactory was not properly configured.BeanFactorypublic void setEnvironment(@Nullable Environment environment)
Environment.setEnvironment in interface EnvironmentAwareenvironment - Spring Environment.EnvironmentAware.setEnvironment(Environment),
Environment@Nullable protected Environment getEnvironment()
Environment.Environment.Environment@NonNull protected EvaluationContext getEvaluationContext()
EvaluationContext used to evaluate SpEL expressions.EvaluationContext used to evaluate SpEL expressions.EvaluationContext@NonNull protected org.slf4j.Logger getLogger()
Logger used by this class to log messages.protected void logDebug(String message, Object... args)
message - String containing the message to log.args - array of arguments used to format the message.logDebug(Supplier)protected void logDebug(Supplier<String> message)
message - Supplier containing the message and arguments to log.Log.isDebugEnabled(),
Log.debug(Object),
getLogger()protected void logInfo(String message, Object... args)
message - String containing the message to log.args - array of arguments used to format the message.logInfo(Supplier)protected void logInfo(Supplier<String> message)
message - Supplier containing the message and arguments to log.Log.isInfoEnabled(),
Log.info(Object),
getLogger()protected void logWarning(String message, Object... args)
message - String containing the message to log.args - array of arguments used to format the message.logWarning(Supplier)protected void logWarning(Supplier<String> message)
message - Supplier containing the message and arguments to log.Log.isWarnEnabled(),
Log.warn(Object),
getLogger()protected void logError(String message, Object... args)
message - String containing the message to log.args - array of arguments used to format the message.logError(Supplier)protected void logError(Supplier<String> message)
message - Supplier containing the message and arguments to log.Log.isErrorEnabled(),
Log.error(Object),
getLogger()@NonNull protected AbstractBeanDefinition register(@NonNull AbstractBeanDefinition beanDefinition)
beanDefinition - AbstractBeanDefinition to register.AbstractBeanDefinition.BeanFactory,
AbstractBeanDefinition,
BeanDefinitionRegistry,
BeanDefinitionReaderUtils.registerWithGeneratedName(AbstractBeanDefinition, BeanDefinitionRegistry),
getBeanFactory()@NonNull protected AbstractBeanDefinition register(@NonNull AbstractBeanDefinition beanDefinition, @Nullable BeanDefinitionRegistry registry)
AbstractBeanDefinition with the given BeanDefinitionRegistry using a generated
bean name.beanDefinition - AbstractBeanDefinition to register.registry - BeanDefinitionRegistry used to register the AbstractBeanDefinition.AbstractBeanDefinition.AbstractBeanDefinition,
BeanDefinitionRegistry,
BeanDefinitionReaderUtils.registerWithGeneratedName(AbstractBeanDefinition, BeanDefinitionRegistry)protected List<String> arrayOfPropertyNamesFor(String propertyNamePrefix, String propertyNameSuffix)
protected String asArrayProperty(String propertyNamePrefix, int index, String propertyNameSuffix)
protected String namedCacheServerProperty(String name, String propertyNameSuffix)
protected String namedDiskStoreProperty(String name, String propertyNameSuffix)
protected String namedGatewaySenderProperty(String name, String propertyNameSuffix)
protected String propertyName(String propertyNameSuffix)
property name.
The fully qualified property name consists of the property name
concatenated with the propertyNameSuffix.propertyNameSuffix - String containing the property name suffix
concatenated with the base property name.property name.Stringprotected <T> T requireProperty(String propertyName, Class<T> type)
name from the Spring Environment
as an instance of the specified type.T - Class type of the propertyName property's assigned value.propertyName - String containing the name of the required property to resolve.type - Class type of the property's assigned value.named property.IllegalArgumentException - if the property has not been assigned a value.
For String values, this also means the value cannot be empty.
For non-String values, this means the value must not be null.resolveProperty(String, Class, Object)protected <A extends Annotation> A resolveAnnotation(AnnotatedElement annotatedElement, Class<A> annotationType)
A - Subclass type of the resolved Annotation.annotatedElement - AnnotatedElement from which to resolve the Annotation.annotationType - type of the Annotation to resolve from the AnnotatedElement.Annotation.Annotation,
AnnotatedElement,
Classprotected Optional<Class<?>> resolveBeanClass(@Nullable BeanDefinition beanDefinition, @Nullable BeanDefinitionRegistry registry)
type of the bean defined by the given BeanDefinition.beanDefinition - BeanDefinition defining the bean from which the type is resolved.registry - BeanDefinitionRegistry used to resolve the ClassLoader used to resolve
the bean's type.Optional Class specifying the resolved type of the bean.BeanDefinition,
BeanDefinitionRegistry,
resolveBeanClassLoader(BeanDefinitionRegistry),
resolveBeanClass(BeanDefinition, ClassLoader)protected Optional<Class<?>> resolveBeanClass(@Nullable BeanDefinition beanDefinition, @NonNull ConfigurableBeanFactory beanFactory)
type of the bean defined by the given BeanDefinition.beanDefinition - BeanDefinition defining the bean from which the type is resolved.beanFactory - ConfigurableBeanFactory used to resolve the ClassLoader used to resolve
the bean's type.Optional Class specifying the resolved type of the bean.BeanDefinition,
ConfigurableBeanFactory,
resolveBeanClassLoader(ConfigurableBeanFactory),
resolveBeanClass(BeanDefinition, ClassLoader)protected Optional<Class<?>> resolveBeanClass(@Nullable BeanDefinition beanDefinition, @Nullable ClassLoader classLoader)
type of the bean defined by the given BeanDefinition.beanDefinition - BeanDefinition defining the bean from which the type is resolved.classLoader - ClassLoader used to resolve the bean's type.Optional resolved type of the bean.ClassLoader,
BeanDefinition,
AbstractBeanDefinition.resolveBeanClass(ClassLoader),
ClassUtils.forName(String, ClassLoader),
resolveBeanClassName(BeanDefinition)@NonNull protected ClassLoader resolveBeanClassLoader(@Nullable BeanDefinitionRegistry registry)
ClassLoader used by the BeanDefinitionRegistry
to load Class definitions of the beans defined in the registry.registry - BeanDefinitionRegistry from which to resolve the ClassLoader.ClassLoader from the BeanDefinitionRegistry
or the current Thread's context ClassLoader.ConfigurableBeanFactory.getBeanClassLoader(),
BeanDefinitionRegistry,
Thread.getContextClassLoader(),
Thread.currentThread()@NonNull protected ClassLoader resolveBeanClassLoader(@Nullable ConfigurableBeanFactory beanFactory)
ClassLoader used by the ConfigurableBeanFactory
to load Class definitions of the beans created by the factory.beanFactory - ConfigurableBeanFactory from which to resolve the ClassLoader.ClassLoader from the ConfigurableBeanFactory
or the current Thread's context ClassLoader.ConfigurableBeanFactory.getBeanClassLoader(),
ConfigurableBeanFactory,
Thread.getContextClassLoader(),
Thread.currentThread()protected Optional<String> resolveBeanClassName(@Nullable BeanDefinition beanDefinition)
BeanDefinition.beanDefinition - BeanDefinition defining the bean from which to resolve the class type name.Optional String containing the resolved class type name of the bean defined
by the given BeanDefinition.BeanDefinition.getBeanClassName()protected Boolean resolveProperty(String propertyName, Boolean defaultValue)
propertyName - name of the property to resolve.defaultValue - default value to return if the property is not defined or not set.name or default value if the property
is not defined or not set.resolveProperty(String, Class, Object)protected Double resolveProperty(String propertyName, Double defaultValue)
propertyName - name of the property to resolve.defaultValue - default value to return if the property is not defined or not set.name or default value if the property
is not defined or not set.resolveProperty(String, Class, Object)protected Float resolveProperty(String propertyName, Float defaultValue)
propertyName - name of the property to resolve.defaultValue - default value to return if the property is not defined or not set.name or default value if the property
is not defined or not set.resolveProperty(String, Class, Object)protected Integer resolveProperty(String propertyName, Integer defaultValue)
propertyName - name of the property to resolve.defaultValue - default value to return if the property is not defined or not set.name or default value if the property
is not defined or not set.resolveProperty(String, Class, Object)protected Long resolveProperty(String propertyName, Long defaultValue)
propertyName - name of the property to resolve.defaultValue - default value to return if the property is not defined or not set.name or default value if the property
is not defined or not set.resolveProperty(String, Class, Object)protected String resolveProperty(String propertyName, String defaultValue)
propertyName - name of the property to resolve.defaultValue - default value to return if the property is not defined or not set.name or default value if the property
is not defined or not set.resolveProperty(String, Class, Object)protected <T> T resolveProperty(String propertyName, Class<T> targetType)
name from the Spring Environment.T - Class type of the property value.propertyName - name of the property to resolve.targetType - Class type of the property's value.name or null if the property
is not defined or not set.resolveProperty(String, Class, Object)protected <T> T resolveProperty(String propertyName, Class<T> targetType, T defaultValue)
name from the Spring Environment.T - Class type of the property value.propertyName - name of the property to resolve.targetType - Class type of the property's value.defaultValue - default value to return if the property is not defined or not set.name or default value if the property
is not defined or not set.getEnvironment()@Nullable protected <T> Class<T> safeResolveType(@NonNull AbstractAnnotationConfigSupport.TypeResolver<T> typeResolver)
type returned by the given AbstractAnnotationConfigSupport.TypeResolver where the type
resolution might result in a ClassNotFoundException or NoClassDefFoundError.T - Class of the type being resolved.typeResolver - AbstractAnnotationConfigSupport.TypeResolver used to resolve a specific type.type or null if the type returned by
the AbstractAnnotationConfigSupport.TypeResolver could not be resolved.AbstractAnnotationConfigSupport.TypeResolver,
ClassNotFoundException,
NoClassDefFoundError,
ClassCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.