Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade OSGI annotations to 6.0.0 version #326

Merged
merged 92 commits into from
Aug 21, 2018
Merged
Show file tree
Hide file tree
Changes from 88 commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
3c9b086
update pom for new osgi annotations
Aug 3, 2018
85e16c4
add dependencies to worker module
Aug 3, 2018
65f2f8e
update annotations in ChromeWebDriverFactory
Aug 7, 2018
3ec6946
update annotations in FirefoxWebDriverFactory
Aug 7, 2018
65d3fb8
update annotations in HttpRequestExecutorFactoryImpl
Aug 7, 2018
444271f
update annotations in WebDriverProvider
Aug 7, 2018
e834ee0
update annotations in worker/impl
Aug 7, 2018
0c9794a
fix missing service parameter
Aug 7, 2018
e68f7a6
updated osgi annotations in runner
plutasnyy Aug 7, 2018
55b8f02
removed unused interfaces
plutasnyy Aug 7, 2018
e0159f2
removed unused function
plutasnyy Aug 7, 2018
0c7164d
change scopes in pom
plutasnyy Aug 7, 2018
dcd7d62
removed names
plutasnyy Aug 7, 2018
375fda5
updated annotations in test executor
plutasnyy Aug 7, 2018
1d18fb8
Removing dependency to SCR annotations
wiiitek Aug 7, 2018
df37aea
removing powermock dependencies
wiiitek Aug 7, 2018
ce55cae
Merge pull request #309 from Cognifide/updates
plutasnyy Aug 8, 2018
2c4405d
added todo in runner pom xml
plutasnyy Aug 8, 2018
7eb8aec
new OSGi annotations - proxy
PiteroS678 Aug 8, 2018
2d22451
update annotations in worker/listeners
Aug 8, 2018
38d0262
new OSGi annotations - validation
PiteroS678 Aug 8, 2018
7d2b474
remove wildcard import
Aug 8, 2018
2c31feb
remove formatting changes in license header
Aug 8, 2018
9720686
updated osgi annotatation in jobs
plutasnyy Aug 8, 2018
0079d6f
updated pom.xml
plutasnyy Aug 8, 2018
ce65974
change conf to config
Aug 8, 2018
c6dad83
move constants from WebDriverHelper
Aug 8, 2018
c0d8b80
removed dependencies
plutasnyy Aug 8, 2018
2e97d91
removed unused variables
plutasnyy Aug 8, 2018
1974b97
remove wildcard import
Aug 8, 2018
f457086
felix dependency removed
PiteroS678 Aug 8, 2018
1ac1bc4
Merge pull request #313 from Cognifide/update-osgi-annotation-validation
plutasnyy Aug 9, 2018
bfebd04
Merge pull request #314 from Cognifide/feature/upgrade-osgi-annotatio…
plutasnyy Aug 9, 2018
48c7ea2
Merge pull request #308 from Cognifide/update-osgi-annotations-test-e…
plutasnyy Aug 9, 2018
95afbe0
updated osgi annotatations in communication
plutasnyy Aug 9, 2018
5e94988
new OSGi annotations - datastorage
PiteroS678 Aug 9, 2018
0669e2f
sling dependency removed
PiteroS678 Aug 9, 2018
a4b95c8
MongoDBClientConf - refactor
PiteroS678 Aug 9, 2018
b254dce
Merge branch 'feature/upgrade-osgi-annotations' into update-osgi-anno…
PiteroS678 Aug 9, 2018
3cca0e2
updated annotatations in cleaner
plutasnyy Aug 9, 2018
8e1a729
remove felix dependency
Aug 9, 2018
a024722
Merge branch 'feature/upgrade-osgi-annotations' into task/new-osgi-an…
EwaFengler Aug 9, 2018
c6098be
added new positions to CHANGELOG associated with new osgi annotations
PiteroS678 Aug 9, 2018
e6bbd5c
PRs grouped
PiteroS678 Aug 9, 2018
9a43fc8
remove unused method
Aug 10, 2018
f64d987
remove unused import
Aug 10, 2018
50e1767
remove dependency
Aug 10, 2018
5bf2e3f
rename XYZConfig to config
Aug 10, 2018
21549f8
redundancy removed
PiteroS678 Aug 10, 2018
c0b277b
Merge pull request #311 from Cognifide/update-osgi-annotation-proxy
plutasnyy Aug 10, 2018
1aa8545
Merge pull request #316 from Cognifide/update-osgi-annotation-datasto…
plutasnyy Aug 10, 2018
34d8e54
upadte osgi annotatation in rest endpoint
plutasnyy Aug 10, 2018
36bc702
Merge branch 'feature/upgrade-osgi-annotations' into update-osgi-anno…
plutasnyy Aug 10, 2018
44d2bb9
Merge pull request #312 from EwaFengler/task/new-osgi-annotations
tkaik Aug 10, 2018
605958f
Merge pull request #315 from Cognifide/feature/upgrade-osgi-annotatio…
plutasnyy Aug 10, 2018
874ed9c
Merge pull request #310 from Cognifide/update-osgi-annotations-rest-e…
plutasnyy Aug 10, 2018
0a713da
Merge pull request #306 from Cognifide/update-osgi-annotations
plutasnyy Aug 10, 2018
f370712
removed duplicated dependencies
plutasnyy Aug 10, 2018
60476ca
Merge pull request #322 from Cognifide/feature/upgrade-osgi-annotatio…
plutasnyy Aug 13, 2018
9d77a91
Merge branch 'master' of https://github.com/Cognifide/aet into featur…
PiteroS678 Aug 13, 2018
c7ee692
update
PiteroS678 Aug 13, 2018
9a65963
felix & sling dependency removed,
PiteroS678 Aug 13, 2018
6473bc5
removed duplicated dependencies
plutasnyy Aug 13, 2018
619a338
felix & sling dependency removed,
PiteroS678 Aug 13, 2018
c0dcc1c
merge
plutasnyy Aug 13, 2018
f68d894
aet-features.xml update
PiteroS678 Aug 13, 2018
f638e1d
updated names in external snippet
plutasnyy Aug 14, 2018
2ce06e4
renamed variables
plutasnyy Aug 14, 2018
fbc7e89
Merge remote-tracking branch 'origin/master' into feature/upgrade-osg…
plutasnyy Aug 14, 2018
69937f3
updated notes:
plutasnyy Aug 14, 2018
b5e6433
Update UpgradeNotes.md
plutasnyy Aug 14, 2018
5a11499
revert 2.1.3 documentation
plutasnyy Aug 14, 2018
9cbfc3a
updated documentation
plutasnyy Aug 14, 2018
af9e812
updated documentation - removed unused plugin
plutasnyy Aug 14, 2018
658cc69
updated documentation
plutasnyy Aug 14, 2018
31c480e
fixed sentence
plutasnyy Aug 14, 2018
4aa3063
fixed typo
plutasnyy Aug 14, 2018
5d0cf9f
Merge branch 'feature/upgrade-osgi-annotations' into update-changelog…
plutasnyy Aug 16, 2018
db2067c
Merge pull request #319 from Cognifide/update-changelog-osgi-annotation
plutasnyy Aug 16, 2018
6ae35f7
updted changelog
plutasnyy Aug 16, 2018
8eb9f64
update upgrade notes
plutasnyy Aug 16, 2018
27eae04
added cleanerjob
plutasnyy Aug 16, 2018
17acdf7
remove names
plutasnyy Aug 16, 2018
e6e0101
small rafactor in worker module
plutasnyy Aug 16, 2018
b807121
changed web driver helper
plutasnyy Aug 16, 2018
09bb97b
update labels in runner configuration
plutasnyy Aug 16, 2018
d73e63b
redundancy in annotations removed
PiteroS678 Aug 17, 2018
dab4795
constants update
PiteroS678 Aug 17, 2018
77f33a5
fix method name
Slasheruus Aug 17, 2018
f446bd7
Update UpgradeNotes.md
plutasnyy Aug 21, 2018
7dd7083
Update UpgradeNotes.md
plutasnyy Aug 21, 2018
dd8f9e2
Merge branch 'master' into feature/upgrade-osgi-annotations
tkaik Aug 21, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ All notable changes to AET will be documented in this file.
## Unreleased
**List of changes that are finished but not yet released in any final version.**

- [PR-326](https://github.com/Cognifide/aet/pull/326) ([PR-308](https://github.com/Cognifide/aet/pull/308), [PR-310](https://github.com/Cognifide/aet/pull/310), [PR-311](https://github.com/Cognifide/aet/pull/311), [PR-312](https://github.com/Cognifide/aet/pull/312), [PR-313](https://github.com/Cognifide/aet/pull/313), [PR-314](https://github.com/Cognifide/aet/pull/314), [PR-315](https://github.com/Cognifide/aet/pull/315), [PR-316](https://github.com/Cognifide/aet/pull/316), [PR-322](https://github.com/Cognifide/aet/pull/322)) - updated OSGi annotations to 6.0.0 OSGi standard
- [PR-293](https://github.com/Cognifide/aet/pull/293) Added error treshold in pixels and percentages for screen comparator
- [PR-300](https://github.com/Cognifide/aet/pull/300) Added creating indexes for collection
- [PR-289](https://github.com/Cognifide/aet/pull/289) User now stays on the same tab while navigating between URLs
Expand Down
20 changes: 10 additions & 10 deletions core/cleaner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,16 @@
</dependency>

<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.scr.annotations</artifactId>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.component.annotations</artifactId>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.annotation</artifactId>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.metatype.annotations</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
Expand All @@ -71,10 +79,6 @@
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-osgi</artifactId>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.configadmin</artifactId>
</dependency>
<dependency>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.quartz</artifactId>
Expand All @@ -87,10 +91,6 @@
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.commons.osgi</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,20 @@
*/
package com.cognifide.aet.cleaner;

import com.cognifide.aet.cleaner.configuration.CleanerSchedulerConf;
import com.cognifide.aet.cleaner.route.MetadataCleanerRouteBuilder;
import com.cognifide.aet.cleaner.validation.CleanerSchedulerValidator;
import com.cognifide.aet.validation.ValidationResultBuilder;
import com.cognifide.aet.validation.ValidationResultBuilderFactory;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableMap;
import java.util.Map;
import java.util.UUID;
import org.apache.felix.scr.annotations.Activate;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.ConfigurationPolicy;
import org.apache.felix.scr.annotations.Deactivate;
import org.apache.felix.scr.annotations.Property;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.Service;
import org.apache.sling.commons.osgi.PropertiesUtil;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.ConfigurationPolicy;
import org.osgi.service.component.annotations.Deactivate;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.metatype.annotations.Designate;
import org.quartz.CronScheduleBuilder;
import org.quartz.JobBuilder;
import org.quartz.JobDataMap;
Expand All @@ -44,47 +42,18 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Service(CleanerScheduler.class)
@Component(immediate = true, metatype = true, label = "AET Cleaning Scheduler Service", policy = ConfigurationPolicy.REQUIRE, configurationFactory = true)
@Component(
service = CleanerScheduler.class,
immediate = true,
configurationPolicy = ConfigurationPolicy.REQUIRE)
@Designate(ocd = CleanerSchedulerConf.class, factory = true)
public class CleanerScheduler {

private static final Logger LOGGER = LoggerFactory.getLogger(CleanerScheduler.class);

private static final String COMPANY_NAME = "companyName";

private static final String PROJECT_NAME = "projectName";

private static final String REMOVE_OLDER_THAN = "removeOlderThan";

private static final String KEEP_N_VERSIONS = "keepNVersions";

private static final String SCHEDULE_CRON = "schedule";

private static final String DRY_RUN = "dryRun";

private static final long DEFAULT_REMOVE_OLDER_THAN_PARAM = 10L;

private static final long DEFAULT_KEEP_N_VERSIONS_PARAM = 1L;

private Scheduler scheduler;

@Property(name = SCHEDULE_CRON, label = "Schedule", description = "CRON notation of when the job is to be fired. [example: '0 0 21 ? * *' will trigger job daily at 21:00].")
private String schedule;

@Property(name = KEEP_N_VERSIONS, label = "Last versions to keep", description = "Defines number of artifacts versions that will be left after clean operation [integer]. If left empty, only one version will be kept after cleaning operation.", longValue = DEFAULT_KEEP_N_VERSIONS_PARAM)
private Long keepNVersions;

@Property(name = REMOVE_OLDER_THAN, label = "Remove artifacts older than", description = "Defines how old files should be removed [integer days]. Works as conjunction with last versions to keep.", longValue = DEFAULT_REMOVE_OLDER_THAN_PARAM)
private Long removeOlderThan;

@Property(name = COMPANY_NAME, label = "Company Name", description = "Name of the company for which we wish cleaning to be performed. Leave blank if you wish to trigger this job for each company on database.")
private String companyName;

@Property(name = PROJECT_NAME, label = "Project Name", description = "Name of the project for which we wish cleaning to be performed. Leave blank if you wish to trigger this job for each project on database.")
private String projectName;

@Property(name = DRY_RUN, label = "Dry run", description = "Flag that says if operation should be run in 'dry run' mode. When checked, no changes will be performed on database.", boolValue = true)
private Boolean dryRun;
private CleanerSchedulerConf config;

@Reference
private MetadataCleanerRouteBuilder metadataCleanerRouteBuilder;
Expand All @@ -98,21 +67,14 @@ public class CleanerScheduler {
private String scheduledJob;

@Activate
public void activate(Map<String, ?> properties) {
public void activate(CleanerSchedulerConf config) {
LOGGER.info("Activating CleanerScheduler.");
try {
schedule = PropertiesUtil.toString(properties.get(SCHEDULE_CRON), null);
removeOlderThan = PropertiesUtil
.toLong(properties.get(REMOVE_OLDER_THAN), DEFAULT_REMOVE_OLDER_THAN_PARAM);
keepNVersions = PropertiesUtil
.toLong(properties.get(KEEP_N_VERSIONS), DEFAULT_KEEP_N_VERSIONS_PARAM);
companyName = PropertiesUtil.toString(properties.get(COMPANY_NAME), "");
projectName = PropertiesUtil.toString(properties.get(PROJECT_NAME), "");
dryRun = PropertiesUtil.toBoolean(properties.get(DRY_RUN), true);
this.config = config;

ValidationResultBuilder validationResultBuilder = validationResultBuilderFactory
.createInstance();
new CleanerSchedulerValidator(schedule, keepNVersions, removeOlderThan)
new CleanerSchedulerValidator(config.schedule(), config.keepNVersions(), config.removeOlderThan())
.validate(validationResultBuilder);
if (!validationResultBuilder.hasErrors()) {
scheduler = StdSchedulerFactory.getDefaultScheduler();
Expand Down Expand Up @@ -156,11 +118,11 @@ private String registerCleaningJob() throws SchedulerException {

final ImmutableMap<String, Object> jobData = ImmutableMap.<String, Object>builder()
.put(CleanerJob.KEY_ROUTE_BUILDER, metadataCleanerRouteBuilder)
.put(CleanerJob.KEY_KEEP_N_VERSIONS, keepNVersions)
.put(CleanerJob.KEY_REMOVE_OLDER_THAN, removeOlderThan)
.put(CleanerJob.KEY_COMPANY_FILTER, companyName)
.put(CleanerJob.KEY_PROJECT_FILTER, projectName)
.put(CleanerJob.KEY_DRY_RUN, dryRun)
.put(CleanerJob.KEY_KEEP_N_VERSIONS, config.keepNVersions())
.put(CleanerJob.KEY_REMOVE_OLDER_THAN, config.removeOlderThan())
Copy link
Contributor

@PiteroS678 PiteroS678 Aug 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add .put(CleanerJob.KEY_KEEP_N_VERSIONS, config.keepNVersions()). We don't have equivalent for .put(CleanerJob.KEY_KEEP_N_VERSIONS, keepNVersions)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

.put(CleanerJob.KEY_COMPANY_FILTER, config.companyName())
.put(CleanerJob.KEY_PROJECT_FILTER, config.projectName())
.put(CleanerJob.KEY_DRY_RUN, config.dryRun())
.build();

JobDetail jobDetail = JobBuilder.newJob(CleanerJob.class)
Expand All @@ -170,7 +132,7 @@ private String registerCleaningJob() throws SchedulerException {

Trigger trigger = TriggerBuilder.newTrigger()
.withIdentity(cleanerTriggerName)
.withSchedule(CronScheduleBuilder.cronSchedule(schedule))
.withSchedule(CronScheduleBuilder.cronSchedule(config.schedule()))
.build();

scheduler.scheduleJob(jobDetail, trigger);
Expand All @@ -180,12 +142,12 @@ private String registerCleaningJob() throws SchedulerException {
@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("schedule", schedule)
.add("keepNVersions", keepNVersions)
.add("removeOlderThan", removeOlderThan)
.add("companyName", companyName)
.add("projectName", projectName)
.add("dryRun", dryRun)
.add("schedule", config.schedule())
.add("keepNVersions", config.keepNVersions())
.add("removeOlderThan", config.removeOlderThan())
.add("companyName", config.companyName())
.add("projectName", config.projectName())
.add("dryRun", config.dryRun())
.toString();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/**
* AET
*
* Copyright (C) 2013 Cognifide Limited
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package com.cognifide.aet.cleaner.configuration;

import org.osgi.service.metatype.annotations.AttributeDefinition;
import org.osgi.service.metatype.annotations.AttributeType;
import org.osgi.service.metatype.annotations.ObjectClassDefinition;

@ObjectClassDefinition(name = "AET Cleaning Scheduler Service", description = "AET Cleaning Scheduler Service")
public @interface CleanerSchedulerConf {

String COMPANY_NAME = "Company Name";

String PROJECT_NAME = "Project Name";

String REMOVE_OLDER_THAN = "Remove artifacts older than";

String KEEP_N_VERSIONS = "Last versions to keep";

String SCHEDULE_CRON = "Schedule";

String DRY_RUN = "Dry run";

long DEFAULT_REMOVE_OLDER_THAN_PARAM = 10L;

long DEFAULT_KEEP_N_VERSIONS_PARAM = 1L;

@AttributeDefinition(
name = SCHEDULE_CRON,
description = "CRON notation of when the job is to be fired. [example: '0 0 21 ? * *' will trigger job daily at 21:00].")
String schedule();

@AttributeDefinition(
name = KEEP_N_VERSIONS,
description = "Defines number of artifacts versions that will be left after clean operation [integer]. If left empty, only one version will be kept after cleaning operation.",
type = AttributeType.LONG)
long keepNVersions() default DEFAULT_KEEP_N_VERSIONS_PARAM;

@AttributeDefinition(
name = REMOVE_OLDER_THAN,
description = "Defines how old files should be removed [integer days]. Works as conjunction with last versions to keep.",
type = AttributeType.LONG)
long removeOlderThan() default DEFAULT_REMOVE_OLDER_THAN_PARAM;

@AttributeDefinition(
name = COMPANY_NAME,
description = "Name of the company for which we wish cleaning to be performed. Leave blank if you wish to trigger this job for each company on database.",
type = AttributeType.STRING)
String companyName();

@AttributeDefinition(
name = PROJECT_NAME,
description = "Name of the project for which we wish cleaning to be performed. Leave blank if you wish to trigger this job for each project on database.",
type = AttributeType.STRING)
String projectName();

@AttributeDefinition(
name = DRY_RUN,
description = "Flag that says if operation should be run in 'dry run' mode. When checked, no changes will be performed on database.",
type = AttributeType.BOOLEAN)
boolean dryRun() default true;


}
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@
import java.util.Map;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.Service;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Service(FetchAllProjectSuitesProcessor.class)
@Component
@Component(service = FetchAllProjectSuitesProcessor.class)
public class FetchAllProjectSuitesProcessor implements Processor {

private static final Logger LOGGER = LoggerFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.commons.lang3.StringUtils;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;
import org.osgi.service.component.annotations.Component;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Service(GetMetadataArtifactsProcessor.class)
@Component
@Component(service = GetMetadataArtifactsProcessor.class)
public class GetMetadataArtifactsProcessor implements Processor {

private static final Logger LOGGER = LoggerFactory.getLogger(GetMetadataArtifactsProcessor.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@
import com.google.common.collect.Sets;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.Service;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Service(RemoveArtifactsProcessor.class)
@Component
@Component(service = RemoveArtifactsProcessor.class)
public class RemoveArtifactsProcessor implements Processor {

private static final Logger LOGGER = LoggerFactory.getLogger(RemoveArtifactsProcessor.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@
import com.cognifide.aet.vs.MetadataDAO;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.Service;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Service(RemoveMetadataProcessor.class)
@Component
@Component(service = RemoveMetadataProcessor.class)
public class RemoveMetadataProcessor implements Processor {

private static final Logger LOGGER = LoggerFactory.getLogger(RemoveMetadataProcessor.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,15 @@
import java.util.Collection;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.Service;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* Query for all databases and passes them to split.
*/
@Service(StartMetadataCleanupProcessor.class)
@Component
@Component(service = StartMetadataCleanupProcessor.class)
public class StartMetadataCleanupProcessor implements Processor {

private static final Logger LOGGER = LoggerFactory.getLogger(StartMetadataCleanupProcessor.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@
import java.util.Collection;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;
import org.osgi.service.component.annotations.Component;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Service(SuitesRemovePredicateProcessor.class)
@Component
@Component(service = SuitesRemovePredicateProcessor.class)
public class SuitesRemovePredicateProcessor implements Processor {

private static final Logger LOGGER = LoggerFactory
Expand Down
Loading