public interface ObjectRoutineBuilder extends ConfigurableBuilder<ObjectRoutineBuilder>, ProxyConfigurableBuilder<ObjectRoutineBuilder>
| Modifier and Type | Method and Description |
|---|---|
<IN,OUT> Routine<IN,OUT> |
aliasMethod(String name)
Returns a routine used to call the method whose identifying name is specified in a
Alias annotation.Optional com.github.dm.jrt.annotation.* method annotations will be honored as
well.Note that such annotations will override any configuration set through the builder. |
<TYPE> TYPE |
buildProxy(Class<TYPE> itf)
Returns a proxy object enabling asynchronous call of the target instance methods.
|
<TYPE> TYPE |
buildProxy(ClassToken<TYPE> itf)
Returns a proxy object enabling asynchronous call of the target instance methods.
|
<IN,OUT> Routine<IN,OUT> |
method(Method method)
Returns a routine used to call the specified method.
|
<IN,OUT> Routine<IN,OUT> |
method(String name,
Class<?>... parameterTypes)
Returns a routine used to call the specified method.
|
invocationsproxies@NotNull <IN,OUT> Routine<IN,OUT> aliasMethod(@NotNull String name)
Alias annotation.com.github.dm.jrt.annotation.* method annotations will be honored as
well.IN - the input data type.OUT - the output data type.name - the name specified in the annotation.IllegalArgumentException - if the specified method is not found.@NotNull
<TYPE> TYPE buildProxy(@NotNull
ClassToken<TYPE> itf)
com.github.dm.jrt.annotation.* annotations.Input,
Inputs,
Invoke and
Output annotations will be honored.TYPE - the interface type.itf - the token of the interface implemented by the returned object.IllegalArgumentException - if the specified class token does not represent an
interface.@NotNull
<TYPE> TYPE buildProxy(@NotNull
Class<TYPE> itf)
com.github.dm.jrt.annotation.* annotations.Input,
Inputs,
Invoke and
Output annotations will be honored.TYPE - the interface type.itf - the interface implemented by the returned object.IllegalArgumentException - if the specified class does not represent an
interface.@NotNull <IN,OUT> Routine<IN,OUT> method(@NotNull String name, @NotNull Class<?>... parameterTypes)
Alias annotation. Though, optional
com.github.dm.jrt.annotation.* method annotations will be honored.name - the method name.parameterTypes - the method parameter types.IllegalArgumentException - if no matching method is found.@NotNull <IN,OUT> Routine<IN,OUT> method(@NotNull Method method)
Alias annotation. Though, optional
com.github.dm.jrt.annotation.* method annotations will be honored.IN - the input data type.OUT - the output data type.method - the method instance.