Permalink
Browse files

Scope clarifications for domain mode

  • Loading branch information...
1 parent 787f704 commit 8be515f56f0a26313ab688d6f5c0732e37ebcece @dmlloyd committed Nov 2, 2012
@@ -36,10 +36,9 @@
*/
@AttributeType(validators = FileReference.Validator.class)
public interface FileReference {
- @Attribute(name = "file-name")
+ @Required @Attribute
String getFileName();
- @Required(false)
@Reference(scopeName = "core.paths", monitor = true)
ResourceRef<PathResource> getRelativeTo();
@@ -46,9 +46,8 @@
/**
* Specify an identifier which is a scope name that {@link Reference @Reference}s can use to refer to members
- * of this collection. Only one resource in a given model may specify a scope with a given name. If a second
- * resource attempts to register the same scope, a runtime failure will occur. Referential integrity will be
- * verified between members of this property and {@code @Reference}s elsewhere in the model.
+ * of this collection. The scope is resolved via the nearest common ancestor between the reference and the
+ * sub-resource scope.
*
* @return the scope identifier
*/

0 comments on commit 8be515f

Please sign in to comment.