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);
}
Aggregations