Record Class RouteRecord
java.lang.Object
java.lang.Record
dev.relism.flash.ext.routeviewer.model.RouteRecord
- Record Components:
event- the raw event emitted by the Flash coreabstractionChain- handler class hierarchy, outermost first, stopping beforeRequestHandler(e.g.["EditPostPageHandler", "HtmlHandler"]). Empty for anonymous lambda handlers.pointcuts- semantic annotations declared on the handler class hierarchy, used as declarative pointcut descriptorsmiddlewareNames- cleaned simple class names of the middleware chain, outermost first
public record RouteRecord(RouteEvent event, List<String> abstractionChain, List<String> pointcuts, List<String> middlewareNames)
extends Record
Enriched snapshot of a single registered route.
Built once at registration time from a RouteEvent.
All expensive operations (superclass traversal, annotation reading)
happen here — never on the request hot-path.
-
Constructor Summary
ConstructorsConstructorDescriptionRouteRecord(RouteEvent event, List<String> abstractionChain, List<String> pointcuts, List<String> middlewareNames) Creates an instance of aRouteRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabstractionChainrecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.static RouteRecordfrom(RouteEvent event) Builds aRouteRecordfrom a rawRouteEvent.final inthashCode()Returns a hash code value for this object.Returns the value of themiddlewareNamesrecord component.Returns the value of thepointcutsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RouteRecord
public RouteRecord(RouteEvent event, List<String> abstractionChain, List<String> pointcuts, List<String> middlewareNames) Creates an instance of aRouteRecordrecord class.- Parameters:
event- the value for theeventrecord componentabstractionChain- the value for theabstractionChainrecord componentpointcuts- the value for thepointcutsrecord componentmiddlewareNames- the value for themiddlewareNamesrecord component
-
-
Method Details
-
from
Builds aRouteRecordfrom a rawRouteEvent. -
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). -
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
abstractionChain
Returns the value of theabstractionChainrecord component.- Returns:
- the value of the
abstractionChainrecord component
-
pointcuts
Returns the value of thepointcutsrecord component.- Returns:
- the value of the
pointcutsrecord component
-
middlewareNames
Returns the value of themiddlewareNamesrecord component.- Returns:
- the value of the
middlewareNamesrecord component
-