public interface IService
Modifier and Type | Field and Description |
---|---|
static IService[] |
EMPTY_SERVICES
Empty service array.
|
Modifier and Type | Method and Description |
---|---|
IFuture<MethodInfo[]> |
getMethodInfos()
Get reflective info about the service methods, args, return types.
|
java.util.Map<java.lang.String,java.lang.Object> |
getPropertyMap()
Get the map of properties (considered as constant).
|
IServiceIdentifier |
getServiceId()
Get the service identifier.
|
IFuture<java.lang.Object> |
invokeMethod(java.lang.String methodname,
ClassInfo[] argtypes,
java.lang.Object[] args,
ClassInfo returntype)
todo: support also blackbox args (e.g.
|
IFuture<java.lang.Boolean> |
isValid()
Test if the service is valid.
|
static final IService[] EMPTY_SERVICES
IServiceIdentifier getServiceId()
IFuture<java.lang.Boolean> isValid()
java.util.Map<java.lang.String,java.lang.Object> getPropertyMap()
IFuture<java.lang.Object> invokeMethod(java.lang.String methodname, ClassInfo[] argtypes, java.lang.Object[] args, ClassInfo returntype)
methodname
- The method name.argtypes
- The argument types (can be null if method exists only once).args
- The arguments.returntype
- The future return type if it is a specific future.IFuture<MethodInfo[]> getMethodInfos()