Skip to content

Instantly share code, notes, and snippets.

@jponge
Created December 8, 2009 16:56
Show Gist options
  • Save jponge/251800 to your computer and use it in GitHub Desktop.
Save jponge/251800 to your computer and use it in GitHub Desktop.
package fr.insalyon.ponge.greeterapp;
import java.util.Map;
import fr.insalyon.ponge.greeter.Greeter;
import fr.insalyon.ponge.greeter.Person;
public class GreeterApp {
private Person person;
public void bind(Greeter greeter, Map<Object, Object> properties) {
System.out.println("A greeter has been registered!");
System.out.println(greeter.greet(person));
}
public void unbind(Greeter greeter, Map<Object, Object> properties) {
System.out.println("A greeter has disappeared...");
}
public void setPerson(Person person) {
this.person = person;
}
public Person getPerson() {
return person;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment