Package net.shibboleth.idp.spring
Class DeprecatedPropertyBean
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.idp.spring.DeprecatedPropertyBean
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,Aware
,ApplicationContextAware
public class DeprecatedPropertyBean
extends AbstractInitializableComponent
implements ApplicationContextAware
A bean that emits deprecation warnings if a configurable set of properties are set.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ApplicationContext
Spring context.private Collection<String>
Dead properties.Deprecated properties.private final org.slf4j.Logger
Class logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
setApplicationContext
(ApplicationContext context) void
setDeadProperties
(Collection<String> properties) Set the property names to treat as defunct.void
Set the property names to deprecate, along with an optional replacement.Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
applicationContext
Spring context. -
deprecatedProperties
Deprecated properties. -
deadProperties
Dead properties.
-
-
Constructor Details
-
DeprecatedPropertyBean
public DeprecatedPropertyBean()Constructor.
-
-
Method Details
-
setDeprecatedProperties
Set the property names to deprecate, along with an optional replacement.- Parameters:
map
- deprecated property names and replacements
-
setDeadProperties
Set the property names to treat as defunct.- Parameters:
properties
- defunct property names
-
setApplicationContext
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
-
doInitialize
- Overrides:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-