Hi,
i created a prototype for two Guice-Injection-Scopes that are based on
the JBehave Lifecycle.
If you are interested you can look at the commits at my github-repo
(branch GuiceScenarioScope)
https://github.com/picpromusic/jbehave-core/commits/GuiceScenarioScope.
You can find examples here
https://github.com/picpromusic/jbehave-core/blob/GuiceScenarioScope/examples/guice/src/main/java/org/jbehave/examples/core/guice/scope/AnnotatedEmbedderUsingGuiceAndStepsAndScope.java
and here
https://github.com/picpromusic/jbehave-core/blob/GuiceScenarioScope/examples/guice/src/main/java/org/jbehave/examples/core/guice/jb921/JBEHAVE_921.java
There are many ways how this can be implemented in JBehave and actually
i choose to extend the StoryRunner. My actual goal is now to discuss
with the jbehave community if jbehave should support such Scopes and if
yes: How jbehave should support it in a way for the other injection
implementations pico, spring, weld.
For a quick diff-view without fetching my repo see
https://github.com/picpromusic/jbehave-core/compare/master...GuiceScenarioScope
Kind regards
Sebastian
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email