Skip to content

Instantly share code, notes, and snippets.

@vijedi
Created January 6, 2012 02:08
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 vijedi/1568553 to your computer and use it in GitHub Desktop.
Save vijedi/1568553 to your computer and use it in GitHub Desktop.
Spring AOP Classes with Qualifiers
@Transactional
@Service("dc")
class DependencyClass implements IDependencyClass {
}
@Transactional
@Service("dca")
class DependencyClassAlternate implements IDependencyClass {
}
class MainClass {
@Autowired
@Qualifier("dc")
private IDependencyClass dc;
@Autowired
@Qualifier("dca")
private IDependencyClass dca;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment