Skip to content

Instantly share code, notes, and snippets.

@jayanath
Created July 30, 2012 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayanath/3209987 to your computer and use it in GitHub Desktop.
Save jayanath/3209987 to your computer and use it in GitHub Desktop.
Room bean instance
//xml based config
room = (Room) xmlCtx.getBean(Room.class);
//annotation based config
room = (Room) annCtx.getBean(Room.class);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment