com.servicerocket.confluence.plugin.utility.library.ConverterModuleDescriptor 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.support.core.convert.Converter;
/**
* Handles {@link Converter} module descriptors.
*/
public class ConverterModuleDescriptor extends AbstractModuleDescriptor {
private Converter converter;
public ConverterModuleDescriptor(ModuleFactory moduleFactory) {
super(moduleFactory);
}
@Override
public Converter getModule() {
if (converter == null) {
converter = moduleFactory.createModule(moduleClassName, this);
}
return converter;
}
}