Cache container for IoC/DI integration
--------------------------------------
Key: JBEHAVE-326
URL: http://jira.codehaus.org/browse/JBEHAVE-326
Project: JBehave
Issue Type: Improvement
Components: Core
Affects Versions: 3.0
Reporter: Brian Repko
Priority: Minor
@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).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email