package com.atlassian.stash.internal.notification.custom.pull;

import com.atlassian.plugin.descriptors.AbstractModuleDescriptor;
import com.atlassian.plugin.module.ModuleFactory;
import com.atlassian.bitbucket.notification.custom.pull.CustomPullRequestNotificationRenderer;

import javax.annotation.Nonnull;

/**
 * Module descriptor for custom pull request notification renderers.
 *
 * @see CustomPullRequestNotificationRenderer
 */
public class CustomPullRequestNotificationRendererModuleDescriptor extends AbstractModuleDescriptor<CustomPullRequestNotificationRenderer> {

    public CustomPullRequestNotificationRendererModuleDescriptor(@Nonnull ModuleFactory moduleFactory) {
        super(moduleFactory);
    }

    @Override
    public CustomPullRequestNotificationRenderer getModule() {
        return moduleFactory.createModule(moduleClassName, this);
    }

}
