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

org.seedstack.business.assembler.dsl.MergeSingleWithQualifier 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.assembler.dsl;

import java.lang.annotation.Annotation;

/**
 * An element of the {@link FluentAssembler DSL} allowing to merge one DTO into an aggregate or a
 * tuple of aggregates or specify the qualifier of the assembler to use.
 */
public interface MergeSingleWithQualifier extends MergeSingle {

    /**
     * Allows to specify the qualifier of the assembler to use.
     *
     * @param qualifier the qualifier annotation.
     * @return the next element of the DSL.
     */
    MergeSingle with(Annotation qualifier);

    /**
     * Allows to specify the qualifier of the assembler to use with Named annotation.
     *
     * @param qualifier the value of javax.inject.Named annotation.
     * @return the next element of the DSL.
     */
    MergeSingle with(String qualifier);

    /**
     * Allows to specify the qualifier class of the assembler to use.
     *
     * @param qualifier the qualifier annotation class.
     * @return the next element of the DSL.
     */
    MergeSingle with(Class qualifier);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy