Created
January 27, 2012 10:27
-
-
Save mathieuancelin/1688182 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:cdi="http://www.jboss.org/schema/seam/spring" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.jboss.org/schema/seam/spring http://www.jboss.org/schema/seam/spring/seam-spring.xsd"> | |
<cdi:bean-reference id="cdiBean" type="org.jboss.seam.spring.test.injection.CdiBean"/> | |
<cdi:bean-reference id="thirdCdiBean" type="org.jboss.seam.spring.test.injection.ThirdCdiBean"> | |
<cdi:qualifier type="org.jboss.seam.spring.test.injection.CdiQualifierWithAttributes"> | |
<cdi:attribute name="name" value="myBean"/> | |
</cdi:qualifier> | |
</cdi:bean-reference> | |
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SpringProducer { | |
@Produces @SpringContext @Web | |
ApplicationContext context; | |
@Produces @SpringContext | |
@Configuration(locations = "classpath*:org/jboss/seam/spring/test/bootstrap/applicationContext.xml") | |
ApplicationContext context; | |
@Produces @SpringBean(fromContext = "context2") SimpleBean simpleBean; | |
@Produces @SpringBean ComplicatedBean complicatedBean; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment