Skip to content

Instantly share code, notes, and snippets.

@jponge
Created December 8, 2009 16:55
Show Gist options
  • Save jponge/251799 to your computer and use it in GitHub Desktop.
Save jponge/251799 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi-1.2.xsd">
<bean name="me" class="fr.insalyon.ponge.greeter.Person">
<constructor-arg index="0">
<value>Julien Ponge</value>
</constructor-arg>
<constructor-arg index="1">
<value>[email protected]</value>
</constructor-arg>
</bean>
<osgi:reference id="greeterService" interface="fr.insalyon.ponge.greeter.Greeter" cardinality="1..1">
<osgi:listener ref="app" bind-method="bind" unbind-method="unbind" />
</osgi:reference>
<bean name="app" class="fr.insalyon.ponge.greeterapp.GreeterApp">
<property name="person">
<ref bean="me" />
</property>
</bean>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment