JavaScript is disabled on your browser.
Skip navigation links
javax.websocket

Class ContainerProvider



  • public abstract class ContainerProvider
    extends Object 
    Provider class that allows the developer to get a reference to the implementation of the WebSocketContainer. The provider class uses the ServiceLoader to load an implementation of ContainerProvider. Specifically, the fully qualified classname of the container implementation of ContainerProvider must be listed in the META-INF/services/javax.websocket.ContainerProvider file in the implementation JAR file.
    Author:
    dannycoward
    • Constructor Detail

      • ContainerProvider

        public ContainerProvider()
    • Method Detail

      • getWebSocketContainer

        public static WebSocketContainer getWebSocketContainer()
        Obtain a new instance of a WebSocketContainer. The method looks for the ContainerProvider implementation class in the order listed in the META-INF/services/javax.websocket.ContainerProvider file, returning the WebSocketContainer implementation from the ContainerProvider implementation that is not null.
        Returns:
        an implementation provided instance of type WebSocketContainer
      • getContainer

        protected abstract WebSocketContainer getContainer()
        Load the container implementation.
        Returns:
        the implementation class
Skip navigation links

Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.

AltStyle によって変換されたページ (->オリジナル) /