SHARE
TWEET

Untitled

a guest Oct 21st, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package pl.edu.ug.tent.springintro.service;
  2.  
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.beans.factory.annotation.Qualifier;
  5. import org.springframework.stereotype.Service;
  6. import pl.edu.ug.tent.springintro.domain.Person;
  7.  
  8. @Service
  9. public class PersonService {
  10.  
  11.   public Person getPrezes() {
  12.     return prezes;
  13.   }
  14.  
  15.   public Person getWiceprezes() {
  16.     return wiceprezes;
  17.   }
  18.  
  19.   public Person getSekretarka() {
  20.     return sekretarka;
  21.   }
  22.  
  23.   @Autowired
  24.   @Qualifier("prezes")
  25.   Person prezes;
  26.   @Autowired
  27.   @Qualifier("wiceprezes")
  28.   Person wiceprezes;
  29.   @Autowired
  30.   @Qualifier("sekretarka")
  31.   Person sekretarka;
  32.  
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top