Skip to content

Instantly share code, notes, and snippets.

@pawelwrzeszcz
pawelwrzeszcz / gist:3993568
Created Nov 1, 2012
Seam-guice component
View gist:3993568
@Name("myGuicyComponent")
@Guice
public class MyGuicyComponent
{
@Inject MyObject myObject
}
@pawelwrzeszcz
pawelwrzeszcz / gist:3993563
Created Nov 1, 2012
Seam-guice module configuration
View gist:3993563
<guice:injector name="myGuiceInjector">
<guice:modules>
<value>com.example.guice.GuiceModule1</value>
<value>com.example.guice.GuiceModule2</value>
</guice:modules>
</guice:injector>
@pawelwrzeszcz
pawelwrzeszcz / gist:3993560
Created Nov 1, 2012
Seam-guice injector configuration
View gist:3993560
<components
xmlns="http://jboss.com/products/seam/components"
xmlns:guice="http://jboss.org/jbosslabs/seam-guice">
...
<guice:init injector="#{myGuiceInjector}/>
...
</components>
@pawelwrzeszcz
pawelwrzeszcz / gist:3993462
Created Nov 1, 2012
Seam-guice configuration
View gist:3993462
<components
xmlns="http://jboss.com/products/seam/components"
xmlns:guice="http://jboss.com/products/seam/guice">
...
</components>