COSMOS ${releaseVersion} data-collection Project
Public API Specification

org.eclipse.cosmos.dc.mgmt.annotations
Annotation Type CreateManagedRelation


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface CreateManagedRelation

Annotation used to indicate a creator for a managed relation.


Required Element Summary
 java.lang.String type
          The type of the relation
 
Optional Element Summary
 java.lang.String name
          The name of the relation
 java.lang.String namespace
          The namespace to be used for the relation.
 java.lang.String relatedClassName
          The name of the class corresponding to the related resource.
 java.lang.String[] roles
          The roles played by the participants in the relation.
 

Element Detail

type

public abstract java.lang.String type
The type of the relation

name

public abstract java.lang.String name
The name of the relation

Default:
""

relatedClassName

public abstract java.lang.String relatedClassName
The name of the class corresponding to the related resource. This name acts as a hint to the annotation processor to help identify add and remove methods.

Default:
""

namespace

public abstract java.lang.String namespace
The namespace to be used for the relation. If no namespace is provided, the namespace of ManagedResource annotation will be used.

Default:
""

roles

public abstract java.lang.String[] roles
The roles played by the participants in the relation. The first role is assigned to the resource the container belongs to, and the second role is assigned to the resource being added. If no roles are proved, the default roles of "container" and "contained" are used.

Default:
{"container", "contained"}

COSMOS ${releaseVersion} data-collection Project
Public API Specification