Record Class ViewResolverDescriptor
java.lang.Object
java.lang.Record
eu.rarogsoftware.rarog.platform.api.plugins.templates.ViewResolverDescriptor
- Record Components:
viewResolverSupplier- supplier for custom view resolvers
- All Implemented Interfaces:
FeatureDescriptor
public record ViewResolverDescriptor(Supplier<Collection<org.springframework.web.servlet.ViewResolver>> viewResolverSupplier)
extends Record
implements FeatureDescriptor
Registers custom view resolvers for Spring MVC -
ViewResolver.
Supports plugin request aware PluginViewResolver
With this feature descriptor is possible to introduce new templates engines other than Thymeleaf.
-
Constructor Summary
ConstructorsConstructorDescriptionViewResolverDescriptor(Supplier<Collection<org.springframework.web.servlet.ViewResolver>> viewResolverSupplier) Creates an instance of aViewResolverDescriptorrecord class. -
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.final StringtoString()Returns a string representation of this record class.Supplier<Collection<org.springframework.web.servlet.ViewResolver>>Returns the value of theviewResolverSupplierrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface eu.rarogsoftware.rarog.platform.api.plugins.FeatureDescriptor
getName
-
Constructor Details
-
ViewResolverDescriptor
public ViewResolverDescriptor(Supplier<Collection<org.springframework.web.servlet.ViewResolver>> viewResolverSupplier) Creates an instance of aViewResolverDescriptorrecord class.- Parameters:
viewResolverSupplier- the value for theviewResolverSupplierrecord 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). -
viewResolverSupplier
Returns the value of theviewResolverSupplierrecord component.- Returns:
- the value of the
viewResolverSupplierrecord component
-