Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Scope clarifications for domain mode

  • Loading branch information...
commit 8be515f56f0a26313ab688d6f5c0732e37ebcece 1 parent 787f704
@dmlloyd authored
3  example/src/main/java/example1/
@@ -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();
5 tool/src/main/java/org/jboss/mgmt/annotation/
@@ -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.