diff options
Diffstat (limited to 'juick-server-jdbc/src/main/java/com/juick/service/SubscriptionServiceImpl.java')
-rw-r--r-- | juick-server-jdbc/src/main/java/com/juick/service/SubscriptionServiceImpl.java | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/juick-server-jdbc/src/main/java/com/juick/service/SubscriptionServiceImpl.java b/juick-server-jdbc/src/main/java/com/juick/service/SubscriptionServiceImpl.java index 0273c1c3..d580f97a 100644 --- a/juick-server-jdbc/src/main/java/com/juick/service/SubscriptionServiceImpl.java +++ b/juick-server-jdbc/src/main/java/com/juick/service/SubscriptionServiceImpl.java @@ -41,22 +41,12 @@ import java.util.stream.Collectors; */ @Repository public class SubscriptionServiceImpl extends BaseJdbcService implements SubscriptionService { - private final UserService userService; - private final MessagesService messagesService; - private final TagService tagService; - @Inject - public SubscriptionServiceImpl(UserService userService, - MessagesService messagesService, TagService tagService) { - Assert.notNull(userService, "UserService must be initialized"); - this.userService = userService; - - Assert.notNull(messagesService,"MessagesService must be initialized"); - this.messagesService = messagesService; - - Assert.notNull(tagService, "TagService must be initialized"); - this.tagService = tagService; - } + private UserService userService; + @Inject + private MessagesService messagesService; + @Inject + private TagService tagService; @Transactional(readOnly = true) @Override |