org.granite.client.tide.cdi
Class CDIContextManager

java.lang.Object
  extended by org.granite.client.tide.impl.SimpleContextManager
      extended by org.granite.client.tide.cdi.CDIContextManager
All Implemented Interfaces:
ContextManager
Direct Known Subclasses:
JavaFXTideClientExtension.JavaFXCDIContextManager

@ApplicationScoped
public class CDIContextManager
extends SimpleContextManager

Author:
William DRAI

Nested Class Summary
 
Nested classes/interfaces inherited from class org.granite.client.tide.impl.SimpleContextManager
SimpleContextManager.DefaultInstanceStoreFactory
 
Field Summary
 
Fields inherited from class org.granite.client.tide.impl.SimpleContextManager
CONTEXT_CREATE, CONTEXT_DESTROY, eventBus, platform
 
Constructor Summary
protected CDIContextManager()
           
  CDIContextManager(Platform platform, EventBus eventBus)
           
 
Method Summary
 Context getContext()
          Return the global context
 DataManager getDataManager()
           
 EntityManager getEntityManager()
           
 void init()
           
 
Methods inherited from class org.granite.client.tide.impl.SimpleContextManager
addToContextsToDestroy, createContext, destroyContext, destroyContexts, destroyFinishedContexts, getAllContexts, getContext, getContext, isGlobal, newContext, removeFromContextsToDestroy, retrieveContext, setBeanManager, setInstanceStoreFactory, updateContextId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDIContextManager

protected CDIContextManager()

CDIContextManager

@Inject
public CDIContextManager(Platform platform,
                                EventBus eventBus)
Method Detail

init

@PostConstruct
public void init()

getContext

@Produces
public Context getContext()
Description copied from class: SimpleContextManager
Return the global context

Specified by:
getContext in interface ContextManager
Overrides:
getContext in class SimpleContextManager
Returns:
context

getEntityManager

@Produces
public EntityManager getEntityManager()

getDataManager

@Produces
public DataManager getDataManager()