Annotation Type Enhances


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface Enhances
    Can be applied to any Trait to indicate to Grails that the trait should be automatically added to the given artefact types
    Since:
    3.0.3
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String[] value  
    • Element Detail

      • value

        java.lang.String[] value
        Returns:
        The artefact types (Example: Controller, Service etc.)