Package io.micronaut.aop.runtime
Record Class RuntimeProxyDefinition.InterceptedMethod<K>
java.lang.Object
java.lang.Record
io.micronaut.aop.runtime.RuntimeProxyDefinition.InterceptedMethod<K>
- Type Parameters:
K- The proxy target type- Record Components:
executableMethod- The executable methodinterceptors- The interceptors
- Enclosing interface:
RuntimeProxyDefinition<T>
@NullMarked
public static record RuntimeProxyDefinition.InterceptedMethod<K>(ExecutableMethod<K,Object> executableMethod, Interceptor<K,Object>[] interceptors)
extends Record
The intercepted method.
-
Constructor Summary
ConstructorsConstructorDescriptionInterceptedMethod(ExecutableMethod<K, Object> executableMethod, Interceptor<K, Object>[] interceptors) Creates an instance of aInterceptedMethodrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutableMethodrecord component.final inthashCode()Returns a hash code value for this object.Interceptor<K,Object>[] Returns the value of theinterceptorsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InterceptedMethod
public InterceptedMethod(ExecutableMethod<K, Object> executableMethod, Interceptor<K, Object>[] interceptors) Creates an instance of aInterceptedMethodrecord class.- Parameters:
executableMethod- the value for theexecutableMethodrecord componentinterceptors- the value for theinterceptorsrecord component
-
-
Method Details
-
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). -
executableMethod
Returns the value of theexecutableMethodrecord component.- Returns:
- the value of the
executableMethodrecord component
-
interceptors
Returns the value of theinterceptorsrecord component.- Returns:
- the value of the
interceptorsrecord component
-