Skip to main content

[identity-api-spec commits] [identity-api-spec~git:034bf371] revised description of annotation to describe its dual use in marking fie

  • From: monzillo@...
  • To: commits@...
  • Subject: [identity-api-spec commits] [identity-api-spec~git:034bf371] revised description of annotation to describe its dual use in marking fie
  • Date: Thu, 3 Jan 2013 15:39:03 +0000

Project:    identity-api-spec
Repository: git
Revision:   034bf371a7f057613544a8af0b7fbf6341624a1d
Author:     monzillo
Date:       2013-01-03 15:38:25 UTC
Link:       

Log Message:
------------
revised description of annotation to describe its dual use in marking fields 
as receivers or providers of
identity attributes depending on the context of its use.


Revisions:
----------
034bf371a7f057613544a8af0b7fbf6341624a1d


Modified Paths:
---------------
IdentityApiGit/src/main/java/javax/security/identity/annotations/IdentityAttribute.java


Diffs:
------
diff --git 
a/IdentityApiGit/src/main/java/javax/security/identity/annotations/IdentityAttribute.java
 
b/IdentityApiGit/src/main/java/javax/security/identity/annotations/IdentityAttribute.java
index fd8527e..985e198 100644
--- 
a/IdentityApiGit/src/main/java/javax/security/identity/annotations/IdentityAttribute.java
+++ 
b/IdentityApiGit/src/main/java/javax/security/identity/annotations/IdentityAttribute.java
@@ -20,11 +20,15 @@ import static java.lang.annotation.ElementType.FIELD;
 import java.lang.annotation.*;
 
 /**
- * This annotation is used to obtain identity attributes from the attribute
- * service. The obtained attribute is assigned to the field on which the
- * annotation occurs.
+ * This annotation is used to mark a field to contain an identity attribute.
  * 
- * The attribute is obtained from the established entity context. 
+ * Whether the field receives or provides the identity attribute depends on
+ * whether this annotation occurs within the context of an IDEntity or 
+ * IDEntityProvider annotation. When in the context of an IDEntity 
annotation,
+ * the field receives the attribute from the attribute service, and the 
attribute
+ * is obtained from the established entity context. Otherwise, the
+ * annotated class becomes the provider of attributes derived from the 
annotated
+ * fields of the class.
  * 
  * @author ronmonzillo
  */




[identity-api-spec commits] [identity-api-spec~git:034bf371] revised description of annotation to describe its dual use in marking fie

monzillo 01/03/2013
 
 
Close
loading
Please Confirm
Close