| Modifier and Type | Method and Description |
|---|---|
protected Context |
AndroidContextManager.getActivityContext(android.app.Activity activity) |
static Context |
AndroidContextManager.getContext(android.app.Activity activity) |
static Context |
AndroidContextManager.getContext(android.app.Activity activity,
android.os.Bundle bundle) |
static Context |
AndroidContextManager.getContext(android.app.Application application) |
| Constructor and Description |
|---|
TideBeanResolver(Context context) |
| Modifier and Type | Method and Description |
|---|---|
Context |
ContextManager.getContext()
Get the global context
|
Context |
ContextManager.getContext(java.lang.String contextId)
Get the context from its id
|
Context |
ContextManager.getContext(java.lang.String contextId,
java.lang.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(java.lang.String contextId,
java.lang.String parentContextId)
Create a context with the specified id and parent id if it does not exist
|
Context |
ContextManager.retrieveContext(Context sourceContext,
java.lang.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 |
|---|---|
java.util.List<Context> |
ContextManager.getAllContexts()
Get a list of all conversation contexts
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
InstanceStore.allByAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass,
Context context)
Return a map of all bean instances annotated with the specified annotation
|
<T> T[] |
InstanceStore.allByType(java.lang.Class<T> type,
Context context,
boolean create)
Return an array of all bean instances implementing the expected type
|
<T> T |
InstanceStore.byName(java.lang.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(java.lang.Class<T> type,
Context context)
Lookup a bean by its type
If more than one instance is found, should throw a runtime exception
|
T |
Factory.create(Context context) |
InstanceStore |
InstanceStoreFactory.createStore(Context context,
InstanceFactory instanceFactory) |
<T> T |
InstanceStore.getNoProxy(java.lang.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,
java.util.Map<java.lang.String,java.lang.Object> initialBeans)
Define a map of beans that will be setup in the context before initialization
|
boolean |
ContextManager.isGlobal(Context context)
True if context is global context
|
void |
EventBus.raiseEvent(Context context,
java.lang.String type,
java.lang.Object... args)
Raise an event on the bus for the specified context
|
Context |
ContextManager.retrieveContext(Context sourceContext,
java.lang.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(java.lang.String previousContextId,
Context context)
Update the context id for an existing context
|
| Constructor and Description |
|---|
Context(ContextManager contextManager,
Context parentCtx,
java.lang.String contextId)
Create a context using the specified manager and context id
Should not be used directly
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractPagedCollection.setContext(Context context) |
| 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,
java.util.List<EntityManager.Update> updates)
Dispatch update events on the context
|
void |
DataObserver.setContext(Context context) |
void |
ManagedEntity.setContext(Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
EntityManagerImpl.raiseUpdateEvents(Context context,
java.util.List<EntityManager.Update> updates) |
| Constructor and Description |
|---|
RemoteInitializerImpl(Context context) |
| Modifier and Type | Method and Description |
|---|---|
Context |
TideEvent.getContext() |
| Modifier and Type | Field and Description |
|---|---|
protected Context |
SimpleInstanceStore.context |
| Modifier and Type | Method and Description |
|---|---|
protected Context |
SimpleContextManager.createContext(Context parentCtx,
java.lang.String contextId) |
protected Context |
ComponentImpl.getContext()
Context where the component is set
|
Context |
SimpleContextManager.getContext() |
Context |
SimpleTideEvent.getContext() |
Context |
SimpleContextManager.getContext(java.lang.String contextId) |
Context |
SimpleContextManager.getContext(java.lang.String contextId,
java.lang.String parentContextId,
boolean create) |
Context |
ComponentListenerImpl.getSourceContext() |
Context |
SimpleContextManager.newContext(java.lang.String contextId,
java.lang.String parentContextId) |
Context |
SimpleContextManager.retrieveContext(Context sourceContext,
java.lang.String contextId,
boolean wasConversationCreated,
boolean wasConversationEnded) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Context> |
SimpleContextManager.getAllContexts() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
SimpleInstanceStore.allByAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass,
Context context) |
<T> T[] |
SimpleInstanceStore.allByType(java.lang.Class<T> type,
Context context,
boolean create) |
<T> T |
SimpleInstanceStore.byName(java.lang.String name,
Context context) |
<T> T |
SimpleInstanceStore.byType(java.lang.Class<T> type,
Context context) |
protected <T> java.util.concurrent.Future<T> |
ComponentImpl.callComponent(Context context,
java.lang.String operation,
java.lang.Object[] args)
Calls a remote component
|
protected Context |
SimpleContextManager.createContext(Context parentCtx,
java.lang.String contextId) |
InstanceStore |
SimpleContextManager.DefaultInstanceStoreFactory.createStore(Context context,
InstanceFactory instanceFactory) |
<T> T |
SimpleInstanceStore.getNoProxy(java.lang.String name,
Context context) |
boolean |
FaultHandler.handleFault(Context context,
org.granite.client.messaging.messages.responses.FaultMessage emsg,
java.util.Map<java.lang.String,java.lang.Object> extendedData) |
void |
IssueHandler.handleIssue(Context context,
org.granite.client.messaging.messages.responses.FaultMessage emsg) |
boolean |
ResultHandler.handleResult(Context context,
org.granite.tide.invocation.InvocationResult invocationResult,
java.lang.Object result) |
void |
InstanceFactory.initContext(Context context) |
void |
DefaultApplication.initContext(Context context,
java.util.Map<java.lang.String,java.lang.Object> initialBeans) |
protected <T> java.util.concurrent.Future<T> |
ComponentImpl.invoke(Context context,
java.lang.String operation,
java.lang.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,
java.lang.String type,
java.lang.Object... args) |
Context |
SimpleContextManager.retrieveContext(Context sourceContext,
java.lang.String contextId,
boolean wasConversationCreated,
boolean wasConversationEnded) |
void |
ComponentImpl.setContext(Context context)
Set the context where the component is set
|
void |
SimpleContextManager.updateContextId(java.lang.String previousContextId,
Context context)
Defines new context for existing id
|
| Constructor and Description |
|---|
ComponentListenerImpl(Context sourceContext,
ComponentListener.Handler<T> handler,
Component component,
java.lang.String operation,
java.lang.Object[] args,
java.lang.Object info,
TideResponder<T> tideResponder) |
FaultHandler(ServerSession serverSession,
Context sourceContext,
java.lang.String componentName,
java.lang.String operation,
org.granite.client.messaging.events.Event event,
java.lang.Object info,
TideResponder<T> tideResponder,
ComponentListener<T> componentListener) |
IssueHandler(ServerSession serverSession,
Context sourceContext,
java.lang.String componentName,
java.lang.String operation,
org.granite.client.messaging.events.FaultEvent event,
java.lang.Object info,
TideResponder<T> tideResponder,
ComponentListener<T> componentResponder) |
ResultHandler(ServerSession serverSession,
Context sourceContext,
java.lang.String componentName,
java.lang.String operation,
org.granite.client.messaging.events.Event event,
java.lang.Object info,
TideResponder<T> tideResponder,
ComponentListener<T> componentListener) |
SimpleInjectInstanceStore(Context context,
InstanceFactory instanceFactory) |
SimpleInstanceStore(Context context,
InstanceFactory instanceFactory) |
SimpleTideEvent(Context context,
java.lang.String type,
java.lang.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,
java.lang.String operation,
java.lang.Object[] args,
ComponentListener<?> componentResponder) |
java.lang.Runnable |
ComponentListener.Handler.fault(Context context,
org.granite.client.messaging.events.FaultEvent event,
java.lang.Object info,
java.lang.String componentName,
java.lang.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
|
java.lang.Runnable |
ComponentListener.Handler.issue(Context context,
org.granite.client.messaging.events.IssueEvent event,
java.lang.Object info,
java.lang.String componentName,
java.lang.String operation,
TideResponder<T> tideResponder,
ComponentListener<T> componentResponder) |
java.lang.Runnable |
ComponentListener.Handler.result(Context context,
org.granite.client.messaging.events.ResultEvent event,
java.lang.Object info,
java.lang.String componentName,
java.lang.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,
java.util.Map<java.lang.String,java.lang.Object> extendedData) |
TideResultEvent(Context context,
ServerSession serverSession,
ComponentListener<T> componentResponder,
T result) |
TideRpcEvent(Context context,
ServerSession serverSession,
ComponentListener<?> componentListener) |