![JAR search and dependency download from the Maven repository](/logo.png)
com.jwebmp.websockets.injections.WebSocketsConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-websockets Show documentation
Show all versions of jwebmp-websockets Show documentation
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