io.smilego.tenant.event.TenantEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multi-tenant-spring-boot-starter Show documentation
Show all versions of multi-tenant-spring-boot-starter Show documentation
A application used as an example on how to set up pushing
its components to the Central Repository.
package io.smilego.tenant.event;
import io.smilego.tenant.TenantContext;
import org.springframework.context.ApplicationEvent;
public abstract class TenantEvent extends ApplicationEvent {
private final String tenantId = TenantContext.getTenantId();
public TenantEvent(Object source) {
super(source);
}
@Override
public Object getSource() {
TenantContext.setTenantId(this.tenantId);
return super.getSource();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy