public class Invocations extends Object
| Modifier and Type | Method and Description |
|---|---|
static <IN,OUT> InvocationFactory<IN,OUT> |
factoryOf(Class<? extends Invocation<IN,OUT>> invocationClass)
Builds and returns a new invocation factory creating instances of the specified class.
|
static <IN,OUT> InvocationFactory<IN,OUT> |
factoryOf(Class<? extends Invocation<IN,OUT>> invocationClass,
Object... args)
Builds and returns a new invocation factory creating instances of the specified class by
passing the specified arguments to the class constructor.
|
static <IN,OUT> InvocationFactory<IN,OUT> |
factoryOf(ClassToken<? extends Invocation<IN,OUT>> invocationToken)
Builds and returns a new invocation factory creating instances of the specified class token.
|
static <IN,OUT> InvocationFactory<IN,OUT> |
factoryOf(ClassToken<? extends Invocation<IN,OUT>> invocationToken,
Object... args)
Builds and returns a new invocation factory creating instances of the specified class token
by passing the specified arguments to the class constructor.
|
static <IN,OUT> InvocationFactory<IN,OUT> |
factoryOf(Invocation<IN,OUT> invocation)
Builds and returns a new invocation factory creating instances of the specified object.
|
static <IN,OUT> InvocationFactory<IN,OUT> |
factoryOf(Invocation<IN,OUT> invocation,
Object... args)
Builds and returns a new invocation factory creating instances of the specified object by
passing the specified arguments to the class constructor.
|
@NotNull public static <IN,OUT> InvocationFactory<IN,OUT> factoryOf(@NotNull Class<? extends Invocation<IN,OUT>> invocationClass)
IN - the input data type.OUT - the output data type.invocationClass - the invocation class.IllegalArgumentException - if no default constructor was found.@NotNull public static <IN,OUT> InvocationFactory<IN,OUT> factoryOf(@NotNull Class<? extends Invocation<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.IllegalArgumentException - if no constructor taking the specified objects as
parameters was found.@NotNull public static <IN,OUT> InvocationFactory<IN,OUT> factoryOf(@NotNull ClassToken<? extends Invocation<IN,OUT>> invocationToken)
IN - the input data type.OUT - the output data type.invocationToken - the invocation class token.IllegalArgumentException - if no default constructor was found.@NotNull public static <IN,OUT> InvocationFactory<IN,OUT> factoryOf(@NotNull ClassToken<? extends Invocation<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.IllegalArgumentException - if no constructor taking the specified objects as
parameters was found.@NotNull public static <IN,OUT> InvocationFactory<IN,OUT> factoryOf(@NotNull Invocation<IN,OUT> invocation)
IN - the input data type.OUT - the output data type.invocation - the invocation instance.IllegalArgumentException - if no default constructor was found.@NotNull public static <IN,OUT> InvocationFactory<IN,OUT> factoryOf(@NotNull Invocation<IN,OUT> invocation, @Nullable Object... args)
IN - the input data type.OUT - the output data type.invocation - the invocation instance.args - the invocation constructor arguments.IllegalArgumentException - if no constructor taking the specified objects as
parameters was found.