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

jakarta.enterprise.inject.build.compatible.spi.DisposerInfo Maven / Gradle / Ivy

package jakarta.enterprise.inject.build.compatible.spi;

import jakarta.enterprise.lang.model.declarations.MethodInfo;
import jakarta.enterprise.lang.model.declarations.ParameterInfo;

/**
 * Disposer methods may exist for producer-based beans. Each disposer method
 * has a {@linkplain #disposedParameter() disposed parameter}.
 *
 * @since 4.0
 */
public interface DisposerInfo {
    /**
     * Returns the {@linkplain MethodInfo declaration} of this disposer method.
     *
     * @return the {@linkplain MethodInfo declaration} of this disposer method, never {@code null}
     */
    MethodInfo disposerMethod();

    /**
     * Returns the {@linkplain ParameterInfo declaration} of the disposed parameter of this disposer method.
     *
     * @return the {@linkplain ParameterInfo declaration} of the disposed parameter of this disposer method, never {@code null}
     */
    ParameterInfo disposedParameter();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy