Search in sources :

Example 1 with PersistenceUnitExtensionsLoader

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;
}
Also used : PersistenceUnitExtensionsLoader(org.kie.server.services.jbpm.jpa.PersistenceUnitExtensionsLoader) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 PersistenceUnitExtensionsLoader (org.kie.server.services.jbpm.jpa.PersistenceUnitExtensionsLoader)1