Created
December 8, 2009 16:56
-
-
Save jponge/251800 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
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