Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6147

DefinitionProviderImpl.get() doesn't satisfy its contract

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.4
    • None
    • None
    • None

    Description

      The interface of DefinitionProvider tells us:

      
          /**
           * Returns the underlying bean if and only if it is successfully resolved, is valid, and is enabled.
           *
           * @throws Registry.InvalidDefinitionException (which is a RuntimeException) if the underlying bean is not successfully resolved, not valid, or not enabled.
           */
          T get() throws Registry.InvalidDefinitionException;

      However, info.magnolia.config.registry.DefinitionProviderBuilder.DefinitionProviderImpl does none of that.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                gjoseph Magnolia International
                gjoseph Magnolia International
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD