T - type of beanpublic class BeanConfigurationLookupStrategy<T> extends AbstractMetadataDrivenConfigurationLookupStrategy<T> implements org.springframework.context.ApplicationContextAware
Defaults to no caching of the result to avoid bean lifecycle issues if relying party config is reloaded.
AbstractMetadataDrivenConfigurationLookupStrategy.CachedConfigurationContext| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
applicationContext
Enclosing Spring context.
|
private org.slf4j.Logger |
log
Class logger.
|
private Class<T> |
propertyType
Type of bean to return.
|
| Constructor and Description |
|---|
BeanConfigurationLookupStrategy()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
protected T |
doTranslate(Attribute tag)
Translate the value(s) into a setting of the appropriate type.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
void |
setPropertyType(Class<T> type)
Set the type of bean to search for.
|
private T |
xmlObjectToBean(XMLObject object)
Convert an XMLObject to a Spring bean reference if the type is supported.
|
apply, setEnableCaching, setMetadataLookupStrategy, setProfileAliases, setProfileIdLookupStrategy, setPropertyName, setStrictNameFormatdestroy, doDestroy, initialize, isDestroyed, isInitialized@Nonnull private final org.slf4j.Logger log
@Nullable private org.springframework.context.ApplicationContext applicationContext
@NonnullAfterInit private Class<T> propertyType
public BeanConfigurationLookupStrategy()
public void setPropertyType(@Nonnull Class<T> type)
type - bean typepublic void setApplicationContext(org.springframework.context.ApplicationContext context)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractMetadataDrivenConfigurationLookupStrategy<T>ComponentInitializationException@Nullable protected T doTranslate(@Nonnull Attribute tag)
Overrides of this function can assume a non-zero collection of values.
doTranslate in class AbstractMetadataDrivenConfigurationLookupStrategy<T>tag - tag to translateCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.