Author: thomas.diesler(a)jboss.com
Date: 2009-06-19 08:53:52 -0400 (Fri, 19 Jun 2009)
New Revision: 90471
Modified:
projects/jboss-osgi/trunk/blueprint/testsuite/src/test/java/org/jboss/test/osgi/blueprint/container/bundle/BeanA.java
projects/jboss-osgi/trunk/blueprint/testsuite/src/test/resources/container/OSGI-INF/blueprint/basic-service.xml
Log:
Allign bean impl with BP descriptor
Modified:
projects/jboss-osgi/trunk/blueprint/testsuite/src/test/java/org/jboss/test/osgi/blueprint/container/bundle/BeanA.java
===================================================================
---
projects/jboss-osgi/trunk/blueprint/testsuite/src/test/java/org/jboss/test/osgi/blueprint/container/bundle/BeanA.java 2009-06-19
12:48:23 UTC (rev 90470)
+++
projects/jboss-osgi/trunk/blueprint/testsuite/src/test/java/org/jboss/test/osgi/blueprint/container/bundle/BeanA.java 2009-06-19
12:53:52 UTC (rev 90471)
@@ -35,7 +35,6 @@
public class BeanA implements ServiceA
{
private MBeanServer mbeanServer;
- private BeanB beanB;
public BeanA()
{
@@ -52,15 +51,4 @@
System.out.println("BeanA: setMbeanServer");
this.mbeanServer = mbeanServer;
}
-
- public BeanB getBeanB()
- {
- return beanB;
- }
-
- public void setBeanB(BeanB beanB)
- {
- System.out.println("BeanA: setBeanB");
- this.beanB = beanB;
- }
}
\ No newline at end of file
Modified:
projects/jboss-osgi/trunk/blueprint/testsuite/src/test/resources/container/OSGI-INF/blueprint/basic-service.xml
===================================================================
---
projects/jboss-osgi/trunk/blueprint/testsuite/src/test/resources/container/OSGI-INF/blueprint/basic-service.xml 2009-06-19
12:48:23 UTC (rev 90470)
+++
projects/jboss-osgi/trunk/blueprint/testsuite/src/test/resources/container/OSGI-INF/blueprint/basic-service.xml 2009-06-19
12:53:52 UTC (rev 90471)
@@ -9,7 +9,9 @@
</service>
<service id="serviceB"
interface="org.jboss.test.osgi.blueprint.container.bundle.ServiceB">
- <bean class="org.jboss.test.osgi.blueprint.container.bundle.BeanB"/>
+ <bean class="org.jboss.test.osgi.blueprint.container.bundle.BeanB">
+ <property name="beanA" ref="beanA"/>
+ </bean>
</service>
<reference id="mbeanService"
interface="javax.management.MBeanServer"/>