use of org.kie.server.services.jbpm.jpa.PersistenceUnitExtensionsLoader in project droolsjbpm-integration by kiegroup.
the class JbpmKieServerExtension method getPersistenceUnitExtensionLoaders.
private static List<PersistenceUnitExtensionsLoader> getPersistenceUnitExtensionLoaders(ClassLoader classLoader) {
final List<PersistenceUnitExtensionsLoader> result = new ArrayList<>();
final ServiceLoader<PersistenceUnitExtensionsLoader> availableLoaders = ServiceLoader.load(PersistenceUnitExtensionsLoader.class, classLoader);
for (PersistenceUnitExtensionsLoader loader : availableLoaders) {
result.add(loader);
}
return result;
}
Aggregations