org.atmosphere.cpr
Class Universe

java.lang.Object
  extended by org.atmosphere.cpr.Universe

public class Universe
extends Object

Universe contains static reference to Atmosphere's Factories.

PLEASE DO NOT USE THIS CLASS IF YOUR APPLICATION CONTAINS WEBFRAGMENTS OR MORE THAN ONCE ATMOSPHERE SERVLET DEFINED AS THIS CLASS IS USING STATIC INSTANCE.

This is ugly, only here to save your buts, Atmosphere users!

Author:
Jeanfrancois Arcand

Constructor Summary
Universe()
           
 
Method Summary
static BroadcasterFactory broadcasterFactory()
          Return the BroadcasterFactory
static void broadcasterFactory(BroadcasterFactory a)
          Set the must be unique BroadcasterFactory
static AtmosphereFramework framework()
          Return the AtmosphereFramework
static void framework(AtmosphereFramework a)
          Set the must be unique AtmosphereFramework
static DefaultMetaBroadcaster metaBroadcaster()
          Return the DefaultMetaBroadcaster
static void metaBroadcaster(DefaultMetaBroadcaster a)
          Set the must be unique DefaultMetaBroadcaster
static AtmosphereResourceFactory resourceFactory()
          Return the AtmosphereResourceFactory
static void resourceFactory(AtmosphereResourceFactory a)
          Set the must be unique AtmosphereResourceFactory
static AtmosphereResourceSessionFactory sessionFactory()
          Return the AtmosphereResourceSessionFactory
static void sessionResourceFactory(AtmosphereResourceSessionFactory a)
          Set the must be unique AtmosphereResourceSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Universe

public Universe()
Method Detail

metaBroadcaster

public static void metaBroadcaster(DefaultMetaBroadcaster a)
Set the must be unique DefaultMetaBroadcaster

Parameters:
a - DefaultMetaBroadcaster

broadcasterFactory

public static void broadcasterFactory(BroadcasterFactory a)
Set the must be unique BroadcasterFactory

Parameters:
a - BroadcasterFactory

framework

public static void framework(AtmosphereFramework a)
Set the must be unique AtmosphereFramework

Parameters:
a - AtmosphereFramework

resourceFactory

public static void resourceFactory(AtmosphereResourceFactory a)
Set the must be unique AtmosphereResourceFactory

Parameters:
a - AtmosphereResourceFactory

sessionResourceFactory

public static void sessionResourceFactory(AtmosphereResourceSessionFactory a)
Set the must be unique AtmosphereResourceSessionFactory

Parameters:
a - AtmosphereResourceSessionFactory

broadcasterFactory

public static BroadcasterFactory broadcasterFactory()
Return the BroadcasterFactory

Returns:
the BroadcasterFactory

framework

public static AtmosphereFramework framework()
Return the AtmosphereFramework

Returns:
the AtmosphereFramework

resourceFactory

public static AtmosphereResourceFactory resourceFactory()
Return the AtmosphereResourceFactory

Returns:
the AtmosphereResourceFactory

sessionFactory

public static AtmosphereResourceSessionFactory sessionFactory()
Return the AtmosphereResourceSessionFactory

Returns:
the AtmosphereResourceSessionFactory

metaBroadcaster

public static DefaultMetaBroadcaster metaBroadcaster()
Return the DefaultMetaBroadcaster

Returns:
the DefaultMetaBroadcaster


Copyright © 2015. All Rights Reserved.