Class ServiceWrapper

java.lang.Object
no.sikt.graphitron.definitions.helpers.ServiceWrapper

public class ServiceWrapper extends Object
Class that contains extended information about a service.
  • Constructor Details

    • ServiceWrapper

      public ServiceWrapper(T field)
  • Method Details

    • getGenericReturnType

      public TypeName getGenericReturnType()
      Returns:
      The class of the return type for this service method.
    • getMethodName

      public String getMethodName()
      Returns:
      The reflected method name for this service method.
    • getServiceClassName

      public ClassName getServiceClassName()
      Returns:
      Javapoet classname of the service.
    • getContextFields

      public Map<String,TypeName> getContextFields()
      Returns:
      Map of context argument to be added to the service call mapped to their types.
    • getReference

      public CodeReference getReference()
      Returns:
      The reference to the external service that this field is related to.
    • getMethod

      public Method getMethod()
      Returns:
      The method that is referenced by this service.