
org.seedstack.business.domain.IdentityGenerator Maven / Gradle / Ivy
/*
* Copyright © 2013-2024, The SeedStack authors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.business.domain;
/**
* A generator of identity for entities.
*
* @param the identifier type.
* @see IdentityService
*/
public interface IdentityGenerator {
/**
* Generate a new identifier for an entity of the specified class.
*
* @param the entity type.
* @param entityClass the entity class to generate an identity for.
* @return the generated identifier.
*/
> I generate(Class entityClass);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy