All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.smilego.tenant.event.TenantEvent Maven / Gradle / Ivy

Go to download

A application used as an example on how to set up pushing its components to the Central Repository.

There is a newer version: 1.2.5
Show newest version
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