org.granite.client.tide
Class Context
java.lang.Object
org.granite.client.tide.Context
public class Context
- extends Object
- Author:
- William DRAI
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Context
protected Context()
Context
public Context(ContextManager contextManager,
Context parentCtx,
String contextId)
getContextManager
public ContextManager getContextManager()
getEntityManager
public EntityManager getEntityManager()
getDataManager
public DataManager getDataManager()
initContext
public void initContext(Platform platform,
EventBus eventBus,
BeanManager beanManager,
InstanceStore instanceStore)
getEventBus
public EventBus getEventBus()
getBeanManager
public BeanManager getBeanManager()
postInit
public void postInit()
getParentContext
public Context getParentContext()
getContextId
public String getContextId()
isContextIdFromServer
public boolean isContextIdFromServer()
isFinished
public boolean isFinished()
setContextId
public void setContextId(String contextId,
boolean fromServer)
- Parameters:
contextId - context idfromServer - is this id received from the server ?
byName
public <T> T byName(String name)
byNameNoProxy
public <T> T byNameNoProxy(String name)
byType
public <T> T byType(Class<T> type)
allByType
public <T> T[] allByType(Class<T> type)
allByType
public <T> T[] allByType(Class<T> type,
boolean create)
allByAnnotatedWith
public Map<String,Object> allByAnnotatedWith(Class<? extends Annotation> annotationClass)
allNames
public List<String> allNames()
set
public void set(String name,
Object instance)
set
public void set(Object instance)
remove
public void remove(String name)
clear
public void clear(boolean force)
initInstance
public void initInstance(Object instance,
String name)
checkValid
public void checkValid()
callLater
public void callLater(Runnable runnable)
markAsFinished
public void markAsFinished()