Permalink
Browse files

Fix description providers

  • Loading branch information...
1 parent 75aa59b commit 049fc595bca20abc56c24fe4394a5413d86f6768 @kabir kabir committed Dec 25, 2011
@@ -1,8 +1,10 @@
package com.mycompany.subsystem.extension;
+import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.ADD;
import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.DESCRIPTION;
import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.HEAD_COMMENT_ALLOWED;
import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.NAMESPACE;
+import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.OPERATION_NAME;
import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.TAIL_COMMENT_ALLOWED;
import java.util.Locale;
@@ -43,6 +45,7 @@ public ModelNode getModelDescription(Locale locale) {
//The locale is passed in so you can internationalize the strings used in the descriptions
final ModelNode subsystem = new ModelNode();
+ subsystem.get(OPERATION_NAME).set(ADD);
subsystem.get(DESCRIPTION).set("Adds my subsystem");
return subsystem;

0 comments on commit 049fc59

Please sign in to comment.