Class InterfaceDescriptionDiscovery


  • public class InterfaceDescriptionDiscovery
    extends Object
    Generates a List of MethodInterfaceDescription by introspecting a class. Therefor the discovery lists all methods that is annotated with an Annotation of Type ActionDescription and creates an instance of MethodInterfaceDescription with the information provided by the MethodSignature, the annotation and the ActionParameterDescription annotations of each method parameter. For Example The Method
    
    
     @ActionDescription(description = "Retreives the authority (role) of an user")
      public String getAuthority(@ActionParameterDescription(name = "username", description = "The user the authority should be evaluated for.", mandatory = true) String username) {
      }
     

    Results in an InterfaceDescription with:

    • name = getAuthority
    • description = Retreives the authority (role) of an user
    • parameter =
      • InputParameterDescription: name = username, description = The user the authority should be evaluated for, mandatory = true
    • Constructor Detail

      • InterfaceDescriptionDiscovery

        public InterfaceDescriptionDiscovery()