package com.uas.eis.core.support;

import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;

public class TokenPropertiesListener implements ApplicationListener<ApplicationStartedEvent> {

	private String propertyFileName;
	
	public TokenPropertiesListener(String propertyFileName) {
        this.propertyFileName = propertyFileName;
    }
	
	@Override
	public void onApplicationEvent(ApplicationStartedEvent arg0) {
		TokenProperties.loadAllProperties(this.propertyFileName);
	}

}
