Package jadex.bridge.service
Interface IService
- 
- All Known Subinterfaces:
- IInternalService
 - All Known Implementing Classes:
- AbstractTransportAgent,- AdvancedThreadPoolService,- ApplicationComponentFactory,- AsyncExecutionService,- BaseService,- BasicService,- BDIAgentFactory,- BDIXComponentFactory,- BeliefGetter,- BisimExecutionService,- BpmnFactory,- ClockService,- ClockService,- ComponentComponentFactory,- ContextService,- ExecutionService,- IntravmTransportAgent,- LibraryService,- MicroAgentFactory,- MicroserviceFactory,- SecurityAgent,- ShopService,- SyncExecutionService,- TcpTransportAgent,- ThreadPoolService,- WebSocketTransportAgent
 
 public interface IServiceThe interface for platform services.
- 
- 
Field SummaryFields Modifier and Type Field Description static IService[]EMPTY_SERVICESEmpty service array.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method 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).IServiceIdentifiergetServiceId()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.
 
- 
- 
- 
Field Detail- 
EMPTY_SERVICESstatic final IService[] EMPTY_SERVICES Empty service array.
 
- 
 - 
Method Detail- 
getServiceIdIServiceIdentifier getServiceId() Get the service identifier.- Returns:
- The service identifier.
 
 - 
isValidIFuture<java.lang.Boolean> isValid() Test if the service is valid.- Returns:
- True, if service can be used.
 
 - 
getPropertyMapjava.util.Map<java.lang.String,java.lang.Object> getPropertyMap() Get the map of properties (considered as constant).- Returns:
- The service property map (if any).
 
 - 
invokeMethodIFuture<java.lang.Object> invokeMethod(java.lang.String methodname, ClassInfo[] argtypes, java.lang.Object[] args, 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.
 
 - 
getMethodInfosIFuture<MethodInfo[]> getMethodInfos() Get reflective info about the service methods, args, return types.- Returns:
- The method infos.
 
 
- 
 
-