Skip to content

Instantly share code, notes, and snippets.

@mathieuancelin
Created April 20, 2011 19:26
Show Gist options
  • Save mathieuancelin/932428 to your computer and use it in GitHub Desktop.
Save mathieuancelin/932428 to your computer and use it in GitHub Desktop.
public class ServiceListener {
public void bindService(MyService service) {
}
public void unbindService(MyService service) {
}
}
// with configuration
<bean id="listener" class="ServiceListener" />
<ref-list interface="MyService.class">
<reference-listener ref="listener"
bind="bindService"
unbind="unbindService" />
</ref-list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment