Class PropertiesMigrationListener
- java.lang.Object
- org.springframework.boot.context.properties.migrator.PropertiesMigrationListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.SpringApplicationEvent>
public class PropertiesMigrationListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.SpringApplicationEvent>
AnApplicationListener
that inspects theenvironment
for configuration keys that need to be migrated. Automatically renames the keys that have a matching replacement and log a report of what was discovered.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description PropertiesMigrationListener()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onApplicationEvent(org.springframework.boot.context.event.SpringApplicationEvent event)
Constructor Detail
PropertiesMigrationListener
public PropertiesMigrationListener()
Method Detail
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.SpringApplicationEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.SpringApplicationEvent>