This content has been marked as final.
Show 1 reply
-
1. Re: Ideas for Local Variable Annotations?
cepage Sep 21, 2004 10:24 AM (in response to bill.burke)How about per-method injection? I create a DAO where different methods need to reference different back-end systems.
public void persistOldContract( Contract c ) { @Injected(LEGACY_BACKEND) ContractPersistManager cpm; cpm.save( c ); } public void persistRecentContract( Contract c ) { @Injected(NEWER_BACKEND) ContractPersistManager cpm; cpm.save( c ); }