net.fortuna.ical4j.data.ServiceLoaderParameterFactorySupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ical4j Show documentation
Show all versions of ical4j Show documentation
A Java library for reading and writing iCalendar (*.ics) files
package net.fortuna.ical4j.data;
import net.fortuna.ical4j.model.ParameterFactory;
import java.util.ArrayList;
import java.util.List;
import java.util.ServiceLoader;
import java.util.function.Supplier;
public class ServiceLoaderParameterFactorySupplier implements Supplier>> {
@Override
public List> get() {
final ServiceLoader serviceLoader = ServiceLoader.load(ParameterFactory.class,
ParameterFactory.class.getClassLoader());
List> factories = new ArrayList<>();
serviceLoader.forEach(factories::add);
return factories;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy