Class TRADEServiceInfo

java.lang.Object
ai.thinkingrobots.trade.TRADEServiceInfo
All Implemented Interfaces:
Serializable, Cloneable

public final class TRADEServiceInfo extends Object implements Serializable, Cloneable
See Also:
  • Field Details

    • serviceString

      public final String serviceString
    • serviceName

      public final String serviceName
    • serviceParameterTypeNames

      public final String[] serviceParameterTypeNames
    • serviceParameterNames

      public final String[] serviceParameterNames
    • serviceReturnTypeName

      public final String serviceReturnTypeName
    • exceptionTypeNames

      public final String[] exceptionTypeNames
  • Method Details

    • call

      public <T> T call(Class<T> returnType, Object... args) throws TRADEException
      Directly call a TRADEService using TRADEServiceInfo
      Parameters:
      args - arguments to be passed to the service
      Returns:
      the service call's return value
      Throws:
      TRADEException - thrown if service is not available or throws an uncaught exception
    • getGroups

      public Collection<String> getGroups()
    • call

      public <T> T call(UUID lock, Class<T> returnType, Object... args) throws TRADEException
      Directly call a TRADEService using TRADEServiceInfo
      Parameters:
      lock - an optional lock
      args - arguments to be passed to the service
      Returns:
      the service call's return value
      Throws:
      TRADEException - thrown if service is not available or throws an uncaught exception
    • getAnnotations

      @Deprecated public List<Annotation> getAnnotations()
      Deprecated.
    • getParameterAnnotations

      public List<List<Annotation>> getParameterAnnotations()
    • getServiceParameterTypes

      public Class<?>[] getServiceParameterTypes()
    • getServiceReturnType

      public Class<?> getServiceReturnType()
    • toString

      public String toString()
      Overrides:
      toString in class Object