-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to use plugin resources without aggregator/processor
- Loading branch information
Showing
9 changed files
with
135 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,4 +116,5 @@ public interface PluginsService { | |
*/ | ||
String getEngineName(); | ||
|
||
boolean pluginCanConsume(Plugin plugin); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
camelot-core/src/test/java/ru/yandex/qatools/camelot/core/plugins/ResourceOnlyService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package ru.yandex.qatools.camelot.core.plugins; | ||
|
||
import org.springframework.context.annotation.Scope; | ||
import org.springframework.stereotype.Component; | ||
import ru.yandex.qatools.camelot.api.AggregatorRepository; | ||
import ru.yandex.qatools.camelot.api.EventProducer; | ||
import ru.yandex.qatools.camelot.api.annotations.Input; | ||
import ru.yandex.qatools.camelot.api.annotations.MainInput; | ||
import ru.yandex.qatools.camelot.api.annotations.Repository; | ||
import ru.yandex.qatools.camelot.core.beans.CounterState; | ||
import ru.yandex.qatools.camelot.core.builders.ReadonlyAggregatorRepository; | ||
|
||
import javax.ws.rs.Path; | ||
|
||
/** | ||
* @author Ilya Sadykov (mailto: smecsia@yandex-team.ru) | ||
*/ | ||
@Component | ||
@Scope("request") | ||
@Path("/resonly") | ||
public class ResourceOnlyService { | ||
|
||
@Input | ||
EventProducer producer; | ||
|
||
@MainInput | ||
EventProducer mainProducer; | ||
|
||
@Repository | ||
private AggregatorRepository repository; | ||
|
||
@Repository(ByLabelBrokenAggregator.class) | ||
private ReadonlyAggregatorRepository<CounterState> counterRepo; | ||
|
||
public EventProducer getProducer() { | ||
return producer; | ||
} | ||
|
||
public EventProducer getMainProducer() { | ||
return mainProducer; | ||
} | ||
|
||
public AggregatorRepository getRepository() { | ||
return repository; | ||
} | ||
|
||
public ReadonlyAggregatorRepository<CounterState> getCounterRepo() { | ||
return counterRepo; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters