Annotation Interface Listing


@Retention(RUNTIME) @Target(METHOD) @GenerateServiceFromMethod(implementation="org.glassfish.config.support.GenericListCommand", advertisedContracts="org.glassfish.api.admin.AdminCommand") public @interface Listing
List command annotation. Follow the same pattern as Create or Delete annotations to generate a command implementation to list elements. Types of elements are listed are infered from the annotated method and parent instance to get the list of elements from must be returned by the resolver. See Create for initialization information
Author:
Jerome Dochez
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    org.glassfish.api.I18n
    Returns the i18n key that will be used to look up a localized string in the annotated type module.
    Name of the command that will be used to register this generic command implementation under.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends CrudResolver>
    Returns the instance of the parent that should be used get the list of children.
  • Element Details

    • value

      @GeneratedServiceName String value
      Name of the command that will be used to register this generic command implementation under.
      Returns:
      the command name as the user types it.
    • resolver

      Class<? extends CrudResolver> resolver
      Returns the instance of the parent that should be used get the list of children.
      Returns:
      the parent instance.
      Default:
      org.glassfish.config.support.CrudResolver.DefaultResolver.class
    • i18n

      org.glassfish.api.I18n i18n
      Returns the i18n key that will be used to look up a localized string in the annotated type module.
      Returns:
      the key to look up localized description for the command.