Annotation Type Extension


  • @Retention(RUNTIME)
    @Target({TYPE,FIELD,PARAMETER,METHOD})
    @Qualifier
    public @interface Extension
    An extension of a service. In order for us to understand the context of the extension, we must consider the extensions call.
    For our purposes, the minimal context of an extension is the type of the service it extends ex. ServiceType#COMPUTE, and its namespace ex. http://docs.openstack.org /ext/keypairs/api/v1.1.

    A keystone extension example:

    {
    "updated": "2014-12-03T00:00:00Z",
    "name": "DiskConfig",
    "links": [

    ],
    "namespace": "http://docs.openstack.org/compute/ext/fake_xml",
    "alias": "OS-DCF",
    "description": "Disk Management Extension."
    },

    See Also:
    ServiceType, , ,
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String namespace
      namespace ex.
      String of
      the service type this is an extension of.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String alias  
      String name  
    • Element Detail

      • of

        String of
        the service type this is an extension of.

        note

        This isn't necessarily one of the built-in services, it could be an extension of a custom service.
        Returns:
        the service type this is an extension of.
      • name

        String name
        Returns:
        the name of the extension
        Default:
        ""
      • alias

        String alias
        Returns:
        the alias of the extension
        Default:
        ""