Record Class InjectionPoint<T>
java.lang.Object
java.lang.Record
org.apache.logging.log4j.plugins.di.spi.InjectionPoint<T>
public record InjectionPoint<T>(Key<T> key, Collection<String> aliases, AnnotatedElement element)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInjectionPoint
(Key<T> key, Collection<String> aliases, AnnotatedElement element) Creates an instance of aInjectionPoint
record class. -
Method Summary
Modifier and TypeMethodDescriptionaliases()
Returns the value of thealiases
record component.element()
Returns the value of theelement
record component.final boolean
Indicates whether some other object is "equal to" this one.static <T> InjectionPoint<T>
static <T> InjectionPoint<T>
forParameter
(Parameter parameter) static List<InjectionPoint<?>>
fromExecutable
(Executable executable) final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
CURRENT_INJECTION_POINT
-
-
Constructor Details
-
InjectionPoint
Creates an instance of aInjectionPoint
record class.- Parameters:
key
- the value for thekey
record componentaliases
- the value for thealiases
record componentelement
- the value for theelement
record component
-
-
Method Details
-
forField
-
forParameter
-
fromExecutable
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
aliases
Returns the value of thealiases
record component.- Returns:
- the value of the
aliases
record component
-
element
Returns the value of theelement
record component.- Returns:
- the value of the
element
record component
-