Record Class ReflectLifeCycleMethod
java.lang.Object
java.lang.Record
com.thewinterframework.service.meta.lifecycle.ReflectLifeCycleMethod
- All Implemented Interfaces:
LifeCycleMethod
public record ReflectLifeCycleMethod(Class<?> service, AnnotatedMethodHandle<?> method, Class<?>[] before, Class<?>[] after)
extends Record
implements LifeCycleMethod
Represents a lifecycle method that is reflected.
-
Constructor Summary
ConstructorsConstructorDescriptionReflectLifeCycleMethod(Class<?> service, AnnotatedMethodHandle<?> method, Class<?>[] before, Class<?>[] after) Creates an instance of aReflectLifeCycleMethodrecord class. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>[]after()Returns the value of theafterrecord component.Class<?>[]before()Returns the value of thebeforerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.Class<?> service()Returns the value of theservicerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReflectLifeCycleMethod
public ReflectLifeCycleMethod(Class<?> service, AnnotatedMethodHandle<?> method, Class<?>[] before, Class<?>[] after) Creates an instance of aReflectLifeCycleMethodrecord class.- Parameters:
service- the value for theservicerecord componentmethod- the value for themethodrecord componentbefore- the value for thebeforerecord componentafter- the value for theafterrecord 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). -
service
Returns the value of theservicerecord component.- Specified by:
servicein interfaceLifeCycleMethod- Returns:
- the value of the
servicerecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
before
Returns the value of thebeforerecord component.- Specified by:
beforein interfaceLifeCycleMethod- Returns:
- the value of the
beforerecord component
-
after
Returns the value of theafterrecord component.- Specified by:
afterin interfaceLifeCycleMethod- Returns:
- the value of the
afterrecord component
-