Search in sources :

Example 1 with Adapter

use of org.glassfish.api.container.Adapter in project Payara by payara.

the class GrizzlyService method registerContainerAdapters.

/*
     * Registers all proxies
     */
void registerContainerAdapters() {
    for (Adapter subAdapter : serviceLocator.getAllServices(Adapter.class)) {
        // @TODO change EndportRegistrationException processing if required
        try {
            if (!subAdapter.isRegistered()) {
                registerAdapter(subAdapter);
                subAdapter.setRegistered(true);
            }
        } catch (EndpointRegistrationException e) {
            LOGGER.log(Level.WARNING, KernelLoggerInfo.grizzlyEndpointRegistration, e);
        }
    }
    serviceLocator.getAllServices(GrizzlyNetworkListenerRestartAdapter.class).forEach(GrizzlyNetworkListenerRestartAdapter::restartEndpoints);
}
Also used : GrizzlyNetworkListenerRestartAdapter(org.glassfish.api.container.GrizzlyNetworkListenerRestartAdapter) GrizzlyNetworkListenerRestartAdapter(org.glassfish.api.container.GrizzlyNetworkListenerRestartAdapter) Adapter(org.glassfish.api.container.Adapter) EndpointRegistrationException(org.glassfish.api.container.EndpointRegistrationException)

Aggregations

Adapter (org.glassfish.api.container.Adapter)1 EndpointRegistrationException (org.glassfish.api.container.EndpointRegistrationException)1 GrizzlyNetworkListenerRestartAdapter (org.glassfish.api.container.GrizzlyNetworkListenerRestartAdapter)1