javax.websocket
Class ContainerProvider

java.lang.Object
  extended by javax.websocket.ContainerProvider

public class ContainerProvider
extends Object

Provider class that uses the ServiceLoader mechanism to provide implementations of ServerContainer and ClientContainer.

Author:
dannycoward

Constructor Summary
ContainerProvider()
           
 
Method Summary
static ClientContainer getClientContainer()
          Obtains a reference to the (singleton) ClientContainer implementation.
static ServerContainer getServerContainer()
          Obtains a reference to the (singletone) ServerContainer implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerProvider

public ContainerProvider()
Method Detail

getServerContainer

public static ServerContainer getServerContainer()
Obtains a reference to the (singletone) ServerContainer implementation.

Returns:
the server implementation.

getClientContainer

public static ClientContainer getClientContainer()
Obtains a reference to the (singleton) ClientContainer implementation.

Returns:
the client implementation.



Copyright © 2012 Oracle and/or its affiliates. All rights reserved.