Annotation Type ScriptMethod


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface ScriptMethod
    Custom annotation type for class methods.
    Author:
    drq
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String code  
      java.lang.String help  
      java.lang.String output  
      ScriptMethodType type  
    • Element Detail

      • help

        java.lang.String help
        Returns:
        a help message for this method (the default is a blank String, which means there is no help)
        Default:
        ""
      • output

        java.lang.String output
        Returns:
        a help message for return of this method (the default is a blank String, which means there is no help)
        Default:
        ""
      • code

        java.lang.String code
        Returns:
        code snippet for this method (the default is a blank String, which means there is no sample code)
        Default:
        ""
      • type

        ScriptMethodType type
        Returns:
        type of this method (the default is READ)
        Default:
        org.springframework.extensions.webscripts.annotation.ScriptMethodType.READ