Package org.atmosphere.cpr
Class Universe
- java.lang.Object
-
- org.atmosphere.cpr.Universe
-
public class Universe extends java.lang.ObjectUniverse 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
Constructors Constructor Description Universe()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BroadcasterFactorybroadcasterFactory()Return theBroadcasterFactorystatic voidbroadcasterFactory(BroadcasterFactory a)Set the must be uniqueBroadcasterFactorystatic AtmosphereFrameworkframework()Return theAtmosphereFrameworkstatic voidframework(AtmosphereFramework a)Set the must be uniqueAtmosphereFrameworkstatic DefaultMetaBroadcastermetaBroadcaster()Return theDefaultMetaBroadcasterstatic voidmetaBroadcaster(DefaultMetaBroadcaster a)Set the must be uniqueDefaultMetaBroadcasterstatic AtmosphereResourceFactoryresourceFactory()Return theAtmosphereResourceFactorystatic voidresourceFactory(AtmosphereResourceFactory a)Set the must be uniqueAtmosphereResourceFactorystatic AtmosphereResourceSessionFactorysessionFactory()<<<<<<< HEAD:modules/cpr/src/main/java/org/atmosphere/cpr/Universe.java Return theAtmosphereResourceSessionFactoryThrow exception if Universe methods are used when they are not reliable:modules/runtime/src/main/java/org/atmosphere/runtime/Universe.javastatic voidsessionResourceFactory(AtmosphereResourceSessionFactory a)<<<<<<< HEAD:modules/cpr/src/main/java/org/atmosphere/cpr/Universe.java Set the must be uniqueAtmosphereResourceSessionFactory
-
-
-
Method Detail
-
metaBroadcaster
public static void metaBroadcaster(DefaultMetaBroadcaster a)
Set the must be uniqueDefaultMetaBroadcaster- Parameters:
a-DefaultMetaBroadcaster
-
broadcasterFactory
public static void broadcasterFactory(BroadcasterFactory a)
Set the must be uniqueBroadcasterFactory- Parameters:
a-BroadcasterFactoryThrow exception if Universe methods are used when they are not reliable:modules/runtime/src/main/java/org/atmosphere/runtime/Universe.java
-
framework
public static void framework(AtmosphereFramework a)
Set the must be uniqueAtmosphereFramework- Parameters:
a-AtmosphereFrameworkhrow exception if Universe methods are used when they are not reliable:modules/runtime/src/main/java/org/atmosphere/runtime/Universe.java
-
resourceFactory
public static void resourceFactory(AtmosphereResourceFactory a)
Set the must be uniqueAtmosphereResourceFactory- Parameters:
a-AtmosphereResourceFactory
-
sessionResourceFactory
public static void sessionResourceFactory(AtmosphereResourceSessionFactory a)
<<<<<<< HEAD:modules/cpr/src/main/java/org/atmosphere/cpr/Universe.java Set the must be uniqueAtmosphereResourceSessionFactory- Parameters:
a-AtmosphereResourceSessionFactoryThrow exception if Universe methods are used when they are not reliable:modules/runtime/src/main/java/org/atmosphere/runtime/Universe.java
-
broadcasterFactory
public static BroadcasterFactory broadcasterFactory()
Return theBroadcasterFactory- Returns:
- the
BroadcasterFactory
-
framework
public static AtmosphereFramework framework()
Return theAtmosphereFramework- Returns:
- the
AtmosphereFramework
-
resourceFactory
public static AtmosphereResourceFactory resourceFactory()
Return theAtmosphereResourceFactory- Returns:
- the
AtmosphereResourceFactory
-
sessionFactory
public static AtmosphereResourceSessionFactory sessionFactory()
<<<<<<< HEAD:modules/cpr/src/main/java/org/atmosphere/cpr/Universe.java Return theAtmosphereResourceSessionFactoryThrow exception if Universe methods are used when they are not reliable:modules/runtime/src/main/java/org/atmosphere/runtime/Universe.java
-
metaBroadcaster
public static DefaultMetaBroadcaster metaBroadcaster()
Return theDefaultMetaBroadcaster- Returns:
- the
DefaultMetaBroadcaster
-
-