All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.jensborch.webhooks.mongodb.SubscriberWebhookRepository Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package com.github.jensborch.webhooks.mongodb;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;

import com.github.jensborch.webhooks.subscriber.Subscriber;
import com.mongodb.client.MongoDatabase;

/**
 * Repository for consumed webhooks.
 */
@Subscriber
@ApplicationScoped
public class SubscriberWebhookRepository extends AbstractWebhookRepository {

    @Inject
    @Subscriber
    private MongoDatabase db;

    @Inject
    @Subscriber
    private SubscriberStatusRepository statusRepo;

    @Override
    protected String collectionName() {
        return "SubscriberWebhooks";
    }

    @Override
    @SuppressWarnings("PMD.ShortMethodName")
    protected MongoDatabase db() {
        return db;
    }

    @Override
    protected AbstractStatusRepository statusRepository() {
        return statusRepo;
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy