Announcement Announcement Module
Collapse
No announcement yet.
design question on connectcontroller and ConnectionRepository Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • design question on connectcontroller and ConnectionRepository

    Hi,

    I was just wondering about the design you provided in the connect contoller..

    I saw you inject the repository @ request scope - why is that? isn't it a limitation on the developer having to define controllers in such a way? why not simply provide an api with some user id signature ? (so you can match it against the userconnection table?)

    When injecting to the controller the beans in such a way - does it make the entire controller created on each request/thread?


    last question - is there a way I can use/get the bean of the connection repository outside the controller? (say - my service layer?)


    Cheers,
    Yoni
Working...
X