Package org.apache.juneau.rest.server
Record Class RestContext.ResolvedMixin
java.lang.Object
java.lang.Record
org.apache.juneau.rest.server.RestContext.ResolvedMixin
- Record Components:
type- The mixin class.overrides- The host-declared override annotation, orMixinAnnotation.DEFAULTfor a bare class.
- Enclosing class:
- RestContext
The discovery-time normalized declaration of a single mixin.
Every mixin entry — whether a bare Class<?> or a rich
@Mixin — is normalized to one of these immutable carriers at discovery
time, so all downstream code consumes a single shape with no bare-vs-def branching. A bare class is
normalized to new ResolvedMixin(type, MixinAnnotation.DEFAULT) (i.e. @Mixin(type=X) with
empty overrides), so a bare class and an empty-override @Mixin are structurally identical.
The overrides annotation is the single home for the host-declared override payload (guards,
serializers, default headers, path/paths, noInherit, …). For bare classes
it is MixinAnnotation.DEFAULT (all slots empty), which contributes nothing — so bare-class
mixins behave exactly as they did before the @Mixin feature.
- Since:
- 10.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedMixin(Class<?> type, Mixin overrides) Compact canonical constructor — validates required components and null-coalescesoverrides. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoverridesrecord component.final StringtoString()Returns a string representation of this record class.Class<?>type()Returns the value of thetyperecord component.
-
Constructor Details
-
ResolvedMixin
Compact canonical constructor — validates required components and null-coalescesoverrides.
-
-
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
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
overrides
Returns the value of theoverridesrecord component.- Returns:
- the value of the
overridesrecord component
-