All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jwebmp.websockets.injections.WebSocketsConfiguration Maven / Gradle / Ivy

Go to download

Provides Asynchronous and Dynamic Log Handler support for JDK1.8 logging API. Access via LogFactory.

The newest version!
package com.jwebmp.websockets.injections;

import com.jwebmp.guicedinjection.GuiceContext;
import com.jwebmp.guicedinjection.interfaces.IGuicePreStartup;
import com.jwebmp.websockets.services.IWebSocketPreConfiguration;

import java.util.ServiceLoader;
import java.util.Set;
import java.util.TreeSet;

public class WebSocketsConfiguration
		implements IGuicePreStartup
{
	@Override
	public void onStartup()
	{
		Set loader = GuiceContext.instance()
		                                                     .getLoader(IWebSocketPreConfiguration.class, true, ServiceLoader.load(IWebSocketPreConfiguration.class));
		Set sortedSet = new TreeSet<>();
		loader.forEach(sortedSet::add);
		sortedSet.forEach(IWebSocketPreConfiguration::configure);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy