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

com.servicerocket.confluence.plugin.utility.library.SupplierModuleDescriptor Maven / Gradle / Ivy

The newest version!
package com.servicerocket.confluence.plugin.utility.library;

import com.atlassian.plugin.descriptors.AbstractModuleDescriptor;
import com.atlassian.plugin.module.ModuleFactory;
import com.servicerocket.confluence.randombits.supplier.core.Supplier;

/**
 * @author williamtanweichun
 * @since 1.0.0.20151223
 */
public class SupplierModuleDescriptor extends AbstractModuleDescriptor {

    private Supplier supplier;

    public SupplierModuleDescriptor(ModuleFactory moduleFactory) {
        super(moduleFactory);
    }

    @Override
    public Supplier getModule() {
        if (supplier == null) {
            supplier = moduleFactory.createModule(moduleClassName, this);
        }
        return supplier;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy