JBehave
  1. JBehave
  2. JBEHAVE-326

Cache container for IoC/DI integration

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      @UsingSpring (applies to Pico and Guice, I would assume) versus the use of Spring Test (@ContextConfiguration) does not cache the container and thus recreates it on every run.
      Use of @ContextConfiguration caches the container (with a key made up of the location String array).
      You can find this code in Spring Test in the TestContext class in the getApplicationContext method.

      http://grepcode.com/file/repo1.maven.org/maven2/org.springframework/spring-test/3.0.2.RELEASE/org/springframework/test/context/TestContext.java

      Enhancement would be to add a method to all the UsingXYZ annotations related to containers to cache the containers (always based on locations).

        Activity

        There are no entries against this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Brian Repko
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: