Annotation Type ScriptClass


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface ScriptClass
    Custom annotation type for java classes that will either serve as JavaScript or Template root objects or provide JavaScript or Template APIs. In general, developer needs to provide help information, sample code and class type in java code which will then be processed by a custom Spring Surf mavnen plugin for producing reference documents as part of the build process. This will avoid manual documentation step.
    Author:
    drq
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String code  
      java.lang.String help  
      ScriptClassType[] types  
    • Element Detail

      • help

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

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

        ScriptClassType[] types
        Returns:
        type of this class (the default is JavaScriptAPI)
        Default:
        {org.springframework.extensions.webscripts.annotation.ScriptClassType.JavaScriptAPI}