Skip to content

Commit

Permalink
feat: Enhance Spring Bean API Definition - MEED-7576 - Meeds-io/meeds…
Browse files Browse the repository at this point in the history
…#2469 (#207)

This change will allow to define API/Impl Spring Beans without having to
declare the API as a Service Bean and the Implementation as Primary.
  • Loading branch information
AzmiTouil authored Oct 10, 2024
1 parent 93d9804 commit 534b72a
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@

import io.meeds.github.gamification.model.RemoteOrganization;
import io.meeds.github.gamification.model.WebHook;
import org.cometd.annotation.Service;
import org.exoplatform.commons.exception.ObjectNotFoundException;
import io.meeds.github.gamification.model.RemoteRepository;
import io.meeds.github.gamification.model.TokenStatus;

import java.util.List;

@Service
public interface GithubConsumerService {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
package io.meeds.github.gamification.services;

import io.meeds.github.gamification.plugin.GithubTriggerPlugin;
import org.cometd.annotation.Service;

@Service
public interface GithubTriggerService {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package io.meeds.github.gamification.services;

import io.meeds.github.gamification.model.WebHook;
import org.cometd.annotation.Service;
import org.exoplatform.commons.ObjectAlreadyExistsException;
import org.exoplatform.commons.exception.ObjectNotFoundException;
import io.meeds.github.gamification.model.RemoteRepository;
Expand All @@ -28,7 +27,6 @@

import java.util.List;

@Service
public interface WebhookService {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
import io.meeds.github.gamification.services.GithubConsumerService;
import io.meeds.github.gamification.storage.GithubConsumerStorage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

@Primary
@Service
public class GithubConsumerServiceImpl implements GithubConsumerService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import org.exoplatform.social.core.manager.IdentityManager;
import org.picocontainer.Startable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.*;
Expand All @@ -46,7 +45,6 @@

import static io.meeds.github.gamification.utils.Utils.*;

@Primary
@Service
public class GithubTriggerServiceImpl implements GithubTriggerService, Startable {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,12 @@
import org.exoplatform.services.log.Log;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import static io.meeds.github.gamification.utils.Utils.*;

@Primary
@Service
public class WebhookServiceImpl implements WebhookService {

Expand Down

0 comments on commit 534b72a

Please sign in to comment.