public class ContextInvocations extends Object
| Modifier and Type | Method and Description |
|---|---|
static <IN,OUT> ContextInvocationFactory<IN,OUT> |
factoryFrom(InvocationFactory<IN,OUT> factory)
Converts the specified invocation factory into a factory of context invocations.
|
static <IN,OUT> ContextInvocationFactory<IN,OUT> |
factoryOf(Class<? extends ContextInvocation<IN,OUT>> invocationClass)
Builds and returns a new context invocation factory creating instances of the specified
class.
|
static <IN,OUT> ContextInvocationFactory<IN,OUT> |
factoryOf(Class<? extends ContextInvocation<IN,OUT>> invocationClass,
Object... args)
Builds and returns a new context invocation factory creating instances of the specified
class by passing the specified arguments to the class constructor.
|
static <IN,OUT> ContextInvocationFactory<IN,OUT> |
factoryOf(ClassToken<? extends ContextInvocation<IN,OUT>> invocationToken)
Builds and returns a new context invocation factory creating instances of the specified class
token.
|
static <IN,OUT> ContextInvocationFactory<IN,OUT> |
factoryOf(ClassToken<? extends ContextInvocation<IN,OUT>> invocationToken,
Object... args)
Builds and returns a new context invocation factory creating instances of the specified class
token by passing the specified arguments to the class constructor.
|
static <IN,OUT> InvocationFactory<IN,OUT> |
fromFactory(Context context,
ContextInvocationFactory<IN,OUT> factory)
Converts the specified context invocation factory into a factory of invocations.
|
@Nonnull public static <IN,OUT> ContextInvocationFactory<IN,OUT> factoryFrom(@Nonnull InvocationFactory<IN,OUT> factory)
IN - the input data type.OUT - the output data type.factory - the invocation factory.@Nonnull public static <IN,OUT> ContextInvocationFactory<IN,OUT> factoryOf(@Nonnull Class<? extends ContextInvocation<IN,OUT>> invocationClass)
IN - the input data type.OUT - the output data type.invocationClass - the invocation class.@Nonnull public static <IN,OUT> ContextInvocationFactory<IN,OUT> factoryOf(@Nonnull Class<? extends ContextInvocation<IN,OUT>> invocationClass, @Nullable Object... args)
IN - the input data type.OUT - the output data type.invocationClass - the invocation class.args - the invocation constructor arguments.@Nonnull public static <IN,OUT> ContextInvocationFactory<IN,OUT> factoryOf(@Nonnull ClassToken<? extends ContextInvocation<IN,OUT>> invocationToken)
IN - the input data type.OUT - the output data type.invocationToken - the invocation class token.@Nonnull public static <IN,OUT> ContextInvocationFactory<IN,OUT> factoryOf(@Nonnull ClassToken<? extends ContextInvocation<IN,OUT>> invocationToken, @Nullable Object... args)
IN - the input data type.OUT - the output data type.invocationToken - the invocation class token.args - the invocation constructor arguments.@Nonnull public static <IN,OUT> InvocationFactory<IN,OUT> fromFactory(@Nonnull Context context, @Nonnull ContextInvocationFactory<IN,OUT> factory)
IN - the input data type.OUT - the output data type.context - the routine context.factory - the context invocation factory.