Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Scope clarifications for domain mode

  • Loading branch information...
commit 8be515f56f0a26313ab688d6f5c0732e37ebcece 1 parent 787f704
@dmlloyd authored
View
3  example/src/main/java/example1/FileReference.java
@@ -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();
View
5 tool/src/main/java/org/jboss/mgmt/annotation/SubResource.java
@@ -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
*/
Please sign in to comment.
Something went wrong with that request. Please try again.