Class IntentListenerRequest<T>

java.lang.Object
com.tick42.glue.desktop.intents.IntentListenerRequest<T>
Type Parameters:
T - type of handled context data

public final class IntentListenerRequest<T> extends Object
Describes a request to define a dynamic Intent.

The handler will have the same lifespan as your application instance.

Since:
1.4.1
See Also:
  • Method Details

    • getIntent

      public String getIntent()
    • getContextTypes

      public List<String> getContextTypes()
    • getDisplayName

      public Optional<String> getDisplayName()
    • getDescription

      public Optional<String> getDescription()
    • getIcon

      public Optional<Object> getIcon()
    • getResultType

      public Optional<String> getResultType()
      Returns type of predefined data structure which the intent handler returns.
      Returns:
      Optional with type of predefined data structure which the intent handler returns, never null
      Since:
      1.7.0
    • intent

      public static <T> IntentListenerRequest.Builder<T> intent(String intent, ReifiedType<T> returnType)