com.codingapi.springboot.framework.event.SpringEventInitializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springboot-starter Show documentation
Show all versions of springboot-starter Show documentation
springboot-starter project for Spring Boot
package com.codingapi.springboot.framework.event;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContext;
@AllArgsConstructor
public class SpringEventInitializer implements InitializingBean {
private final ApplicationContext context;
@Override
public void afterPropertiesSet() throws Exception {
DomainEventContext.getInstance().initContext(context);
}
}