Package net.shibboleth.idp.spring
Class DeprecatedPropertyBean
java.lang.Object
net.shibboleth.shared.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 ApplicationContextSpring context.private Collection<String>Dead properties.Deprecated properties.private final org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidsetApplicationContext(ApplicationContext context) voidsetDeadProperties(Collection<String> properties) Set the property names to treat as defunct.voidSet the property names to deprecate, along with an optional replacement.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, 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:
setApplicationContextin interfaceApplicationContextAware
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-