Created
May 17, 2012 11:47
-
-
Save Rikkola/2718361 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| public GenericActivityMapper implements ActivityMapper { | |
| Map<Place,Activity> activites = new HashMap<String,Activity>; | |
| @Inject | |
| void initServices(@Any Instance<Activity> activities) { | |
| for (Activity activity: activities) { | |
| activites.put(activitity.getPlace(),activity); | |
| } | |
| } | |
| public Activity getActivity( Place place ){ | |
| return activities.getPlace(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment