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

org.jeecqrs.common.domain.model.multitenancy.AbstractMultiTenancyDomainEvent Maven / Gradle / Ivy

The newest version!
package org.jeecqrs.common.domain.model.multitenancy;

import org.jeecqrs.common.Identity;
import org.jeecqrs.common.domain.model.AbstractDomainEvent;

public abstract class AbstractMultiTenancyDomainEvent 
	extends AbstractDomainEvent
	implements MultiTenancyDomainEvent {

    private final TID tenantId;

    public AbstractMultiTenancyDomainEvent(TID tenantId) {
        if (tenantId == null)
            throw new NullPointerException("tenantId must not be null");
	this.tenantId = tenantId;
    }

    @Override
    public final TID tenantId() {
	return tenantId;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy