Debian Codegraph @

api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/DisposerInfo.java

raw
1 /*
2 * Copyright (c) 2021 Red Hat and others
3 *
4 * This program and the accompanying materials are made available under the
5 * Apache Software License 2.0 which is available at:
6 * https://www.apache.org/licenses/LICENSE-2.0.
7 *
8 * SPDX-License-Identifier: Apache-2.0
9 */
10
11 package jakarta.enterprise.inject.build.compatible.spi;
12
13 import jakarta.enterprise.lang.model.declarations.MethodInfo;
14 import jakarta.enterprise.lang.model.declarations.ParameterInfo;
15
16 /**
17 * Disposer methods may exist for producer-based beans. Each disposer method
18 * has a {@linkplain #disposedParameter() disposed parameter}.
19 *
20 * @since 4.0
21 */
22 public interface DisposerInfo {
23 /**
24 * Returns the {@linkplain MethodInfo declaration} of this disposer method.
25 *
26 * @return the {@linkplain MethodInfo declaration} of this disposer method, never {@code null}
27 */
28 MethodInfo disposerMethod();
29
30 /**
31 * Returns the {@linkplain ParameterInfo declaration} of the disposed parameter of this disposer method.
32 *
33 * @return the {@linkplain ParameterInfo declaration} of the disposed parameter of this disposer method, never {@code null}
34 */
35 ParameterInfo disposedParameter();
36 }