Record Class FrameworkContext

java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.dispatching.FrameworkContext

@Internal public record FrameworkContext(Middlewares middlewares, ErrorMessageFactory errorMessageFactory, InteractionRegistry interactionRegistry, TypeAdapters adapterRegistry, ExpirationStrategy expirationStrategy, InteractionControllerInstantiator instanceProvider, Embeds embeds, I18n i18n, MessageResolver messageResolver, InteractionDefinition.ReplyConfig globalReplyConfig, CommandDefinition.CommandConfig globalCommandConfig) extends Record
  • Constructor Details

    • FrameworkContext

      public FrameworkContext(Middlewares middlewares, ErrorMessageFactory errorMessageFactory, InteractionRegistry interactionRegistry, TypeAdapters adapterRegistry, ExpirationStrategy expirationStrategy, InteractionControllerInstantiator instanceProvider, Embeds embeds, I18n i18n, MessageResolver messageResolver, InteractionDefinition.ReplyConfig globalReplyConfig, CommandDefinition.CommandConfig globalCommandConfig)
      Creates an instance of a FrameworkContext record class.
      Parameters:
      middlewares - the value for the middlewares record component
      errorMessageFactory - the value for the errorMessageFactory record component
      interactionRegistry - the value for the interactionRegistry record component
      adapterRegistry - the value for the adapterRegistry record component
      expirationStrategy - the value for the expirationStrategy record component
      instanceProvider - the value for the instanceProvider record component
      embeds - the value for the embeds record component
      i18n - the value for the i18n record component
      messageResolver - the value for the messageResolver record component
      globalReplyConfig - the value for the globalReplyConfig record component
      globalCommandConfig - the value for the globalCommandConfig record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • middlewares

      public Middlewares middlewares()
      Returns the value of the middlewares record component.
      Returns:
      the value of the middlewares record component
    • errorMessageFactory

      public ErrorMessageFactory errorMessageFactory()
      Returns the value of the errorMessageFactory record component.
      Returns:
      the value of the errorMessageFactory record component
    • interactionRegistry

      public InteractionRegistry interactionRegistry()
      Returns the value of the interactionRegistry record component.
      Returns:
      the value of the interactionRegistry record component
    • adapterRegistry

      public TypeAdapters adapterRegistry()
      Returns the value of the adapterRegistry record component.
      Returns:
      the value of the adapterRegistry record component
    • expirationStrategy

      public ExpirationStrategy expirationStrategy()
      Returns the value of the expirationStrategy record component.
      Returns:
      the value of the expirationStrategy record component
    • instanceProvider

      public InteractionControllerInstantiator instanceProvider()
      Returns the value of the instanceProvider record component.
      Returns:
      the value of the instanceProvider record component
    • embeds

      public Embeds embeds()
      Returns the value of the embeds record component.
      Returns:
      the value of the embeds record component
    • i18n

      public I18n i18n()
      Returns the value of the i18n record component.
      Returns:
      the value of the i18n record component
    • messageResolver

      public MessageResolver messageResolver()
      Returns the value of the messageResolver record component.
      Returns:
      the value of the messageResolver record component
    • globalReplyConfig

      public InteractionDefinition.ReplyConfig globalReplyConfig()
      Returns the value of the globalReplyConfig record component.
      Returns:
      the value of the globalReplyConfig record component
    • globalCommandConfig

      public CommandDefinition.CommandConfig globalCommandConfig()
      Returns the value of the globalCommandConfig record component.
      Returns:
      the value of the globalCommandConfig record component