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;
}
}