| Modifier and Type | Method and Description |
|---|---|
Context |
ContextManager.getContext()
Get the global context
|
Context |
ContextManager.getContext(String contextId)
Get the context from its id
|
Context |
ContextManager.getContext(String contextId,
String parentContextId,
boolean create)
Get a context from its id with the specified parent id, and create it if it does not exist
|
Context |
Context.getParentContext()
Parent context for conversation contexts
|
Context |
ContextManager.newContext(String contextId,
String parentContextId)
Create a context with the specified id and parent id if it does not exist
|
Context |
ContextManager.retrieveContext(Context sourceContext,
String contextId,
boolean wasConversationCreated,
boolean wasConversationEnded)
Get or create the context for the specified context id and server conversation flags
|
| Modifier and Type | Method and Description |
|---|---|
List<Context> |
ContextManager.getAllContexts()
Get a list of all conversation contexts
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
InstanceStore.allByAnnotatedWith(Class<? extends Annotation> annotationClass,
Context context)
Return a map of all bean instances annotated with the specified annotation
|
<T> T[] |
InstanceStore.allByType(Class<T> type,
Context context,
boolean create)
Return an array of all bean instances implementing the expected type
|
<T> T |
InstanceStore.byName(String name,
Context context)
Lookup a bean by its name
The implementation is free to create and return a default instance (such as a service proxy) if no bean exists
|
<T> T |
InstanceStore.byType(Class<T> type,
Context context)
Lookup a bean by its type
If more than one instance is found, should throw a runtime exception
|
InstanceStore |
InstanceStoreFactory.createStore(Context context) |
<T> T |
InstanceStore.getNoProxy(String name,
Context context)
Lookup a bean by its name
Does not create a proxy if no bean found
|
void |
BaseIdentity.handle(Context context,
org.granite.client.messaging.messages.responses.FaultMessage emsg,
TideFaultEvent faultEvent) |
void |
Application.initContext(Context context,
Map<String,Object> initialBeans)
Define a map of beans that will be setup in the context before initialization
|
void |
EventBus.raiseEvent(Context context,
String type,
Object... args)
Raise an event on the bus for the specified context
|
Context |
ContextManager.retrieveContext(Context sourceContext,
String contextId,
boolean wasConversationCreated,
boolean wasConversationEnded)
Get or create the context for the specified context id and server conversation flags
|
void |
ContextAware.setContext(Context context) |
void |
ContextManager.updateContextId(String previousContextId,
Context context)
Update the context id for an existing context
|
| Constructor and Description |
|---|
Context(ContextManager contextManager,
Context parentCtx,
String contextId)
Create a context using the specified manager and context id
Should not be used directly
|
| Modifier and Type | Method and Description |
|---|---|
Context |
CDIContextManager.getContext() |
Context |
TideApplicationEvent.getContext() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
CDIInstanceStoreFactory.CDIInstanceStore.allByAnnotatedWith(Class<? extends Annotation> annotationClass,
Context context) |
<T> T[] |
CDIInstanceStoreFactory.CDIInstanceStore.allByType(Class<T> type,
Context context,
boolean create) |
<T> T |
CDIInstanceStoreFactory.CDIInstanceStore.byName(String name,
Context context) |
<T> T |
CDIInstanceStoreFactory.CDIInstanceStore.byType(Class<T> type,
Context context) |
InstanceStore |
CDIInstanceStoreFactory.createStore(Context context) |
<T> T |
CDIInstanceStoreFactory.CDIInstanceStore.getNoProxy(String name,
Context context) |
void |
CDIEventBus.raiseEvent(Context context,
String type,
Object... args) |
| Constructor and Description |
|---|
CDIInstanceStoreFactory.CDIInstanceStore(Context context,
BeanManager beanManager) |
TideApplicationEvent(Context context,
String type,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
OptimisticLockExceptionHandler.handle(Context context,
org.granite.client.messaging.messages.responses.FaultMessage emsg,
TideFaultEvent faultEvent) |
void |
EntityManager.raiseUpdateEvents(Context context,
List<EntityManager.Update> updates)
Dispatch update events on the context
|
void |
DataObserver.setContext(Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
EntityManagerImpl.raiseUpdateEvents(Context context,
List<EntityManager.Update> updates) |
| Constructor and Description |
|---|
RemoteInitializerImpl(Context context) |
| Modifier and Type | Method and Description |
|---|---|
Context |
TideEvent.getContext() |
| Modifier and Type | Method and Description |
|---|---|
protected Context |
SimpleContextManager.createContext(Context parentCtx,
String contextId) |
protected Context |
ComponentImpl.getContext()
Context where the component is set
|
Context |
SimpleContextManager.getContext() |
Context |
SimpleTideEvent.getContext() |
Context |
SimpleContextManager.getContext(String contextId) |
Context |
SimpleContextManager.getContext(String contextId,
String parentContextId,
boolean create) |
Context |
ComponentListenerImpl.getSourceContext() |
Context |
SimpleContextManager.newContext(String contextId,
String parentContextId) |
Context |
SimpleContextManager.retrieveContext(Context sourceContext,
String contextId,
boolean wasConversationCreated,
boolean wasConversationEnded) |
| Modifier and Type | Method and Description |
|---|---|
List<Context> |
SimpleContextManager.getAllContexts() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
SimpleInstanceStore.allByAnnotatedWith(Class<? extends Annotation> annotationClass,
Context context) |
<T> T[] |
SimpleInstanceStore.allByType(Class<T> type,
Context context,
boolean create) |
<T> T |
SimpleInstanceStore.byName(String name,
Context context) |
<T> T |
SimpleInstanceStore.byType(Class<T> type,
Context context) |
protected <T> Future<T> |
ComponentImpl.callComponent(Context context,
String operation,
Object[] args)
Calls a remote component
|
protected Context |
SimpleContextManager.createContext(Context parentCtx,
String contextId) |
InstanceStore |
SimpleContextManager.DefaultInstanceStoreFactory.createStore(Context context) |
<T> T |
SimpleInstanceStore.getNoProxy(String name,
Context context) |
void |
FaultHandler.handleFault(Context context,
org.granite.client.messaging.messages.responses.FaultMessage emsg) |
void |
IssueHandler.handleIssue(Context context,
org.granite.client.messaging.messages.responses.FaultMessage emsg) |
void |
ResultHandler.handleResult(Context context,
org.granite.tide.invocation.InvocationResult invocationResult,
Object result,
Object mergeWith) |
void |
DefaultApplication.initContext(Context context,
Map<String,Object> initialBeans) |
protected <T> Future<T> |
ComponentImpl.invoke(Context context,
String operation,
Object[] args,
TideResponder<T> tideResponder)
Execute the invocation of the remote component
|
boolean |
SimpleContextManager.isGlobal(Context context)
Determine if the specified context is the global one
|
void |
SimpleEventBus.raiseEvent(Context context,
String type,
Object... args) |
Context |
SimpleContextManager.retrieveContext(Context sourceContext,
String contextId,
boolean wasConversationCreated,
boolean wasConversationEnded) |
void |
ComponentImpl.setContext(Context context)
Set the context where the component is set
|
void |
SimpleContextManager.updateContextId(String previousContextId,
Context context)
Defines new context for existing id
|
| Constructor and Description |
|---|
ComponentListenerImpl(Context sourceContext,
ComponentListener.Handler<T> handler,
Component component,
String operation,
Object[] args,
Object info,
TideResponder<T> tideResponder) |
FaultHandler(ServerSession serverSession,
Context sourceContext,
String componentName,
String operation,
org.granite.client.messaging.events.Event event,
Object info,
TideResponder<T> tideResponder,
ComponentListener<T> componentListener) |
IssueHandler(ServerSession serverSession,
Context sourceContext,
String componentName,
String operation,
org.granite.client.messaging.events.FaultEvent event,
Object info,
TideResponder<T> tideResponder,
ComponentListener<T> componentResponder) |
ResultHandler(ServerSession serverSession,
Context sourceContext,
String componentName,
String operation,
org.granite.client.messaging.events.Event event,
Object info,
TideResponder<T> tideResponder,
ComponentListener<T> componentListener) |
SimpleInstanceStore(Context context) |
SimpleTideEvent(Context context,
String type,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
Context |
ServerSession.getContext()
Current Tide context
|
Context |
TideRpcEvent.getContext() |
Context |
ComponentListener.getSourceContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
InvocationInterceptor.beforeInvocation(Context ctx,
Component component,
String operation,
Object[] args,
ComponentListener<?> componentResponder) |
Runnable |
ComponentListener.Handler.fault(Context context,
org.granite.client.messaging.events.FaultEvent event,
Object info,
String componentName,
String operation,
TideResponder<T> tideResponder,
ComponentListener<T> componentResponder) |
void |
ExceptionHandler.handle(Context context,
org.granite.client.messaging.messages.responses.FaultMessage emsg,
TideFaultEvent faultEvent)
Handle the error
|
Runnable |
ComponentListener.Handler.issue(Context context,
org.granite.client.messaging.events.IssueEvent event,
Object info,
String componentName,
String operation,
TideResponder<T> tideResponder,
ComponentListener<T> componentResponder) |
Runnable |
ComponentListener.Handler.result(Context context,
org.granite.client.messaging.events.ResultEvent event,
Object info,
String componentName,
String operation,
TideResponder<T> tideResponder,
ComponentListener<T> componentResponder) |
void |
ServerSession.setContext(Context context)
Set the Tide context for this server session
(internal method, should be set by the context itself)
|
| Constructor and Description |
|---|
TideFaultEvent(Context context,
ServerSession serverSession,
ComponentListener<?> componentListener,
Fault fault,
Map<String,Object> extendedData) |
TideResultEvent(Context context,
ServerSession serverSession,
ComponentListener<T> componentResponder,
T result) |
TideRpcEvent(Context context,
ServerSession serverSession,
ComponentListener<?> componentListener) |
| Modifier and Type | Method and Description |
|---|---|
Context |
TideApplicationEvent.getContext() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
SpringInstanceStoreFactory.SpringInstanceStore.allByAnnotatedWith(Class<? extends Annotation> annotationClass,
Context context) |
<T> T[] |
SpringInstanceStoreFactory.SpringInstanceStore.allByType(Class<T> type,
Context context,
boolean create) |
<T> T |
SpringInstanceStoreFactory.SpringInstanceStore.byName(String name,
Context context) |
<T> T |
SpringInstanceStoreFactory.SpringInstanceStore.byType(Class<T> type,
Context context) |
InstanceStore |
SpringInstanceStoreFactory.createStore(Context context) |
<T> T |
SpringInstanceStoreFactory.SpringInstanceStore.getNoProxy(String name,
Context context) |
void |
SpringEventBus.raiseEvent(Context context,
String type,
Object... args) |
| Constructor and Description |
|---|
SpringInstanceStoreFactory.SpringInstanceStore(Context context,
ApplicationContext applicationContext) |
TideApplicationEvent(Context context,
String type,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
ValidationExceptionHandler.handle(Context context,
org.granite.client.messaging.messages.responses.FaultMessage emsg,
TideFaultEvent faultEvent) |