Package io.micronaut.inject.writer
Class StaticOriginatingElements
java.lang.Object
io.micronaut.inject.writer.StaticOriginatingElements
- All Implemented Interfaces:
OriginatingElements
@Internal
public final class StaticOriginatingElements
extends Object
implements OriginatingElements
Utility class for testing originating element generation. Not for public use.
- Since:
- 2.1.1
- Author:
- graemerocher
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOriginatingElement
(@NonNull Element element) Add another element that should be included in the originating elements.void
clear()
-
Field Details
-
INSTANCE
-
-
Method Details
-
addOriginatingElement
Description copied from interface:OriginatingElements
Add another element that should be included in the originating elements.- Specified by:
addOriginatingElement
in interfaceOriginatingElements
- Parameters:
element
- The element to add
-
getOriginatingElements
- Specified by:
getOriginatingElements
in interfaceOriginatingElements
- Returns:
- The elements where the bean definition originated from as an array.
-
clear
public void clear()
-