Annotation Type Extension
-
@Retention(RUNTIME) @Target({TYPE,FIELD,PARAMETER,METHOD}) @Qualifier public @interface Extension
An extension of aservice
. 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."
},
-
-
Element Detail
-
of
String of
the service type this is an extension of.note
This isn't necessarily one of the built-inservices
, it could be an extension of a custom service.- Returns:
- the service type this is an extension of.
-
-
-
namespace
String namespace
namespace ex. http ://docs.openstack.org /ext/keypairs/api/v1.1.- Returns:
- the namespace of the extension
-
-
-
name
String name
- Returns:
- the name of the extension
- Default:
- ""
-
-
-
alias
String alias
- Returns:
- the alias of the extension
- Default:
- ""
-
-