Package com.tick42.glue.desktop.intents
Interface Intents
public interface Intents
Intents API.
Allows registration, finding and raising Intents.
- Since:
- 1.4.1
-
Method Summary
Modifier and TypeMethodDescriptionaddIntentListener(IntentListenerRequest<T> request, IntentContextHandler<T, R> handler) addIntentListener(String intent, IntentContextHandler<Map<String, Object>, Map<String, Object>> handler) CompletionStage<Map<String, ? extends Intent>> all()default CompletionStage<IntentResult<Void>> raise(IntentRequest request) <T> CompletionStage<IntentResult<T>> raise(IntentRequest request, ReifiedType<T> returnType) default CompletionStage<IntentResult<Void>> register(IntentListenerRequest<T> request, IntentRequestHandler<T, R> handler) Registers a handler to be called when a raised intent needs to be handled by this application.Registers a handler to be called when a raised intent needs to be handled by this application.
-
Method Details
-
all
CompletionStage<Map<String,? extends Intent>> all() -
addIntentListener
<T,R> CompletionStage<IntentListenerRegistration> addIntentListener(IntentListenerRequest<T> request, IntentContextHandler<T, R> handler) -
addIntentListener
default CompletionStage<IntentListenerRegistration> addIntentListener(String intent, IntentContextHandler<Map<String, Object>, Map<String, Object>> handler) -
register
<T,R> CompletionStage<IntentListenerRegistration> register(IntentListenerRequest<T> request, IntentRequestHandler<T, R> handler) Registers a handler to be called when a raised intent needs to be handled by this application.- Type Parameters:
T- type of the context dataR- type of the returned data- Parameters:
request- requesthandler- handler- Returns:
- stage that completes with intent registration, never
null - Since:
- 1.7.0
-
register
default CompletionStage<IntentListenerRegistration> register(String intent, IntentRequestHandler<Map<String, Object>, Map<String, Object>> handler) Registers a handler to be called when a raised intent needs to be handled by this application.- Parameters:
intent- intenthandler- handler- Returns:
- stage that completes with intent registration, never
null - Since:
- 1.7.0
-
raise
-
raise
-
raise
-