Interface IService

All Known Subinterfaces:
IInternalService
All Known Implementing Classes:
BasicService

public interface IService
The interface for platform services.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IService[]
    Empty service array.
  • Method Summary

    Modifier and Type
    Method
    Description
    jadex.future.IFuture<jadex.common.MethodInfo[]>
    Get reflective info about the service methods, args, return types.
    Get the service identifier.
    jadex.future.IFuture<Object>
    invokeMethod(String methodname, jadex.common.ClassInfo[] argtypes, Object[] args, jadex.common.ClassInfo returntype)
    todo: support also blackbox args (e.g.
  • Field Details

    • EMPTY_SERVICES

      static final IService[] EMPTY_SERVICES
      Empty service array.
  • Method Details

    • getServiceId

      IServiceIdentifier getServiceId()
      Get the service identifier.
      Returns:
      The service identifier.
    • invokeMethod

      jadex.future.IFuture<Object> invokeMethod(String methodname, jadex.common.ClassInfo[] argtypes, Object[] args, jadex.common.ClassInfo returntype)
      todo: support also blackbox args (e.g. byte[]) as args could also use classes that are not available. Invoke a method reflectively.
      Parameters:
      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.
      Returns:
      The result.
    • getMethodInfos

      jadex.future.IFuture<jadex.common.MethodInfo[]> getMethodInfos()
      Get reflective info about the service methods, args, return types.
      Returns:
      The method infos.