mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
cleanup service loader code
This commit is contained in:
@@ -6,14 +6,9 @@ import io.nosqlbench.engine.api.activityapi.core.ActivityType;
|
||||
import io.nosqlbench.engine.api.activityimpl.ActivityDef;
|
||||
import io.nosqlbench.nb.annotations.Service;
|
||||
|
||||
@Service(ActivityType.class)
|
||||
@Service(value = ActivityType.class, selector = "mongodb")
|
||||
public class MongoActivityType implements ActivityType<MongoActivity> {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "mongodb";
|
||||
}
|
||||
|
||||
@Override
|
||||
public MongoActivity getActivity(ActivityDef activityDef) {
|
||||
return new MongoActivity(activityDef);
|
||||
|
||||
Reference in New Issue
Block a user