Search in sources :

Example 1 with ServicesJar

use of org.apache.openejb.config.sys.ServicesJar in project tomee by apache.

the class ServiceJarXmlLoader method parse.

private void parse(final String namespace) {
    try {
        // Load and try again
        final ServicesJar servicesJar = JaxbOpenejb.readServicesJar(namespace);
        for (final ServiceProvider provider : servicesJar.getServiceProvider()) {
            final ID found = new ID(namespace, provider.getId());
            loaded.put(found, provider);
        }
    } catch (final OpenEJBException e) {
        throw new IllegalStateException(e);
    }
}
Also used : OpenEJBException(org.apache.openejb.OpenEJBException) ServiceProvider(org.apache.openejb.config.sys.ServiceProvider) ServicesJar(org.apache.openejb.config.sys.ServicesJar)

Aggregations

OpenEJBException (org.apache.openejb.OpenEJBException)1 ServiceProvider (org.apache.openejb.config.sys.ServiceProvider)1 ServicesJar (org.apache.openejb.config.sys.ServicesJar)1