Skip to content
Browse files

Cleanup deprecated test API usages

  • Loading branch information...
1 parent 2842b79 commit a64e95cf48e1237a8363e5e15af7479550ff03ea @ctomc ctomc committed with bstansberry
View
4 ...c/test/java/org/jboss/as/clustering/infinispan/subsystem/InfinispanSubsystemTestCase.java
@@ -156,10 +156,10 @@ public void testDescribeHandler() throws Exception {
ModelNode describeOp = new ModelNode();
describeOp.get(OP).set(DESCRIBE);
describeOp.get(OP_ADDR).set(PathAddress.pathAddress(PathElement.pathElement(SUBSYSTEM, getMainSubsystemName())).toModelNode());
- List<ModelNode> operations = super.checkResultAndGetContents(servicesA.executeOperation(describeOp)).asList();
+ List<ModelNode> operations = checkResultAndGetContents(servicesA.executeOperation(describeOp)).asList();
// Install the describe options from the first controller into a second controller
- KernelServices servicesB = super.installInController(operations);
+ KernelServices servicesB = createKernelServicesBuilder(null).setBootOperations(operations).build();
ModelNode modelB = servicesB.readWholeModel();
// Make sure the models from the two controllers are identical
View
14 configadmin/src/test/java/org/jboss/as/configadmin/parser/ConfigAdminParserTestCase.java
@@ -87,7 +87,9 @@ public void testReadWriteEmptySubsystem() throws Exception {
@Test
public void testDescribeHandler() throws Exception {
- KernelServices servicesA = installInController(AdditionalInitialization.MANAGEMENT, SUBSYSTEM_XML_1_0_1);
+ KernelServices servicesA = createKernelServicesBuilder(AdditionalInitialization.MANAGEMENT)
+ .setSubsystemXml(SUBSYSTEM_XML_1_0_1)
+ .build();
ModelNode modelA = servicesA.readWholeModel();
ModelNode describeOp = new ModelNode();
describeOp.get(ModelDescriptionConstants.OP).set(ModelDescriptionConstants.DESCRIBE);
@@ -95,7 +97,9 @@ public void testDescribeHandler() throws Exception {
PathAddress.pathAddress(PathElement.pathElement(ModelDescriptionConstants.SUBSYSTEM, ConfigAdminExtension.SUBSYSTEM_NAME)).toModelNode());
List<ModelNode> operations = checkResultAndGetContents(servicesA.executeOperation(describeOp)).asList();
- KernelServices servicesB = installInController(AdditionalInitialization.MANAGEMENT, operations);
+ KernelServices servicesB = createKernelServicesBuilder(AdditionalInitialization.MANAGEMENT)
+ .setBootOperations(operations)
+ .build();
ModelNode modelB = servicesB.readWholeModel();
compare(modelA, modelB);
@@ -135,12 +139,6 @@ public void testTransformers1_0_0() throws Exception {
Assert.assertEquals("testingabc", entries.get("test456").asString());
}
- private void assertOSGiSubsystemAddress(ModelNode address) {
- PathAddress addr = PathAddress.pathAddress(address);
- PathElement element = addr.getElement(0);
- Assert.assertEquals(ModelDescriptionConstants.SUBSYSTEM, element.getKey());
- Assert.assertEquals(ConfigAdminExtension.SUBSYSTEM_NAME, element.getValue());
- }
protected AdditionalInitialization createAdditionalInitialization() {
return AdditionalInitialization.MANAGEMENT;
View
9 ...src/test/java/org/jboss/as/connector/subsystems/jca/AbstractComplexSubsystemTestCase.java
@@ -23,7 +23,6 @@
import junit.framework.Assert;
-
import org.jboss.as.connector.util.ConnectorServices;
import org.jboss.as.controller.Extension;
import org.jboss.as.subsystem.test.AbstractSubsystemTest;
@@ -53,7 +52,9 @@ public ModelNode getModel(String resourceFileName, boolean checkMarshalledXML, S
String xml = readResource(resourceFileName);
- KernelServices services = super.installInController(AdditionalInitialization.MANAGEMENT, xml);
+ KernelServices services = createKernelServicesBuilder(AdditionalInitialization.MANAGEMENT)
+ .setSubsystemXml(xml)
+ .build();
ModelNode model = services.readWholeModel();
if (archiveName!=null)
@@ -64,7 +65,9 @@ public ModelNode getModel(String resourceFileName, boolean checkMarshalledXML, S
if (checkMarshalledXML)
Assert.assertEquals(normalizeXML(xml), normalizeXML(marshalled));
- services = super.installInController(AdditionalInitialization.MANAGEMENT, marshalled);
+ services = createKernelServicesBuilder(AdditionalInitialization.MANAGEMENT)
+ .setSubsystemXml(marshalled)
+ .build();
// Check that the model looks the same
ModelNode modelReloaded = services.readWholeModel();
View
8 jacorb/src/test/java/org/jboss/as/jacorb/JacORBSubsystemTestCase.java
@@ -178,7 +178,9 @@ protected void setupController(ControllerInitializer controllerInitializer) {
}
};
- KernelServices servicesA = super.installInController(additionalInit, subsystemXml);
+ KernelServices servicesA = createKernelServicesBuilder(additionalInit)
+ .setSubsystemXml(subsystemXml)
+ .build();
// get the model and the describe operations from the first controller.
ModelNode modelA = servicesA.readWholeModel();
ModelNode describeOp = new ModelNode();
@@ -186,13 +188,13 @@ protected void setupController(ControllerInitializer controllerInitializer) {
describeOp.get(OP_ADDR).set(
PathAddress.pathAddress(
PathElement.pathElement(SUBSYSTEM, JacORBExtension.SUBSYSTEM_NAME)).toModelNode());
- List<ModelNode> operations = super.checkResultAndGetContents(servicesA.executeOperation(describeOp)).asList();
+ List<ModelNode> operations = checkResultAndGetContents(servicesA.executeOperation(describeOp)).asList();
servicesA.shutdown();
Assert.assertEquals(1, operations.size());
// install the describe options from the first controller into a second controller.
- KernelServices servicesB = super.installInController(additionalInit, operations);
+ KernelServices servicesB = createKernelServicesBuilder(additionalInit).setBootOperations(operations).build();
ModelNode modelB = servicesB.readWholeModel();
servicesB.shutdown();
View
38 jmx/src/test/java/org/jboss/as/jmx/JMXSubsystemTestCase.java
@@ -188,7 +188,9 @@ public void testInstallIntoController() throws Exception {
"<subsystem xmlns=\"" + Namespace.CURRENT.getUriString() + "\">" +
"<remoting-connector/>" +
"</subsystem>";
- KernelServices services = super.installInController(new BaseAdditionalInitalization(),subsystemXml);
+ KernelServices services = createKernelServicesBuilder(new BaseAdditionalInitalization())
+ .setSubsystemXml(subsystemXml)
+ .build();
//Read the whole model and make sure it looks as expected
ModelNode model = services.readWholeModel();
@@ -229,7 +231,7 @@ public void testParseAndMarshalModel1_0() throws Exception {
"<subsystem xmlns=\"" + Namespace.JMX_1_0.getUriString() + "\"/>";
AdditionalInitialization additionalInit = new BaseAdditionalInitalization();
- KernelServices servicesA = super.installInController(additionalInit, subsystemXml);
+ KernelServices servicesA = createKernelServicesBuilder(additionalInit).setSubsystemXml(subsystemXml).build();
//Get the model and the persisted xml from the first controller
ModelNode modelA = servicesA.readWholeModel();
String marshalled = servicesA.getPersistedSubsystemXml();
@@ -240,7 +242,7 @@ public void testParseAndMarshalModel1_0() throws Exception {
compareXml(null, finishedSubsystemXml, marshalled, true);
//Install the persisted xml from the first controller into a second controller
- KernelServices servicesB = super.installInController(additionalInit, marshalled);
+ KernelServices servicesB = createKernelServicesBuilder(additionalInit).setSubsystemXml(marshalled).build();
ModelNode modelB = servicesB.readWholeModel();
//Make sure the models from the two controllers are identical
@@ -262,7 +264,7 @@ public void testParseAndMarshalModel1_1WithShowModel() throws Exception {
AdditionalInitialization additionalInit = new BaseAdditionalInitalization();
- KernelServices servicesA = super.installInController(additionalInit, subsystemXml);
+ KernelServices servicesA = createKernelServicesBuilder(additionalInit).setSubsystemXml(subsystemXml).build();
//Get the model and the persisted xml from the first controller
ModelNode modelA = servicesA.readWholeModel();
String marshalled = servicesA.getPersistedSubsystemXml();
@@ -272,7 +274,7 @@ public void testParseAndMarshalModel1_1WithShowModel() throws Exception {
compareXml(null, finishedXml, marshalled, true);
//Install the persisted xml from the first controller into a second controller
- KernelServices servicesB = super.installInController(additionalInit, marshalled);
+ KernelServices servicesB = createKernelServicesBuilder(additionalInit).setSubsystemXml(marshalled).build();
ModelNode modelB = servicesB.readWholeModel();
//Make sure the models from the two controllers are identical
@@ -291,7 +293,7 @@ public void testParseAndMarshalModelWithRemoteConnectorRef1_1() throws Exception
AdditionalInitialization additionalInit = new BaseAdditionalInitalization();
- KernelServices servicesA = super.installInController(additionalInit, subsystemXml);
+ KernelServices servicesA = createKernelServicesBuilder(additionalInit).setSubsystemXml(subsystemXml).build();
//Get the model and the persisted xml from the first controller
ModelNode modelA = servicesA.readWholeModel();
String marshalled = servicesA.getPersistedSubsystemXml();
@@ -300,7 +302,7 @@ public void testParseAndMarshalModelWithRemoteConnectorRef1_1() throws Exception
compareXml(null, subsystemXml, marshalled, true);
//Install the persisted xml from the first controller into a second controller
- KernelServices servicesB = super.installInController(additionalInit, marshalled);
+ KernelServices servicesB = createKernelServicesBuilder(additionalInit).setSubsystemXml(marshalled).build();
ModelNode modelB = servicesB.readWholeModel();
//Make sure the models from the two controllers are identical
@@ -324,7 +326,7 @@ public void testParseAndMarshalModel1_1() throws Exception {
AdditionalInitialization additionalInit = new BaseAdditionalInitalization();
- KernelServices servicesA = super.installInController(additionalInit, subsystemXml);
+ KernelServices servicesA = createKernelServicesBuilder(additionalInit).setSubsystemXml(subsystemXml).build();
//Get the model and the persisted xml from the first controller
ModelNode modelA = servicesA.readWholeModel();
String marshalled = servicesA.getPersistedSubsystemXml();
@@ -334,7 +336,7 @@ public void testParseAndMarshalModel1_1() throws Exception {
compareXml(null, finishedXml, marshalled, true);
//Install the persisted xml from the first controller into a second controller
- KernelServices servicesB = super.installInController(additionalInit, marshalled);
+ KernelServices servicesB = createKernelServicesBuilder(additionalInit).setSubsystemXml(marshalled).build();
ModelNode modelB = servicesB.readWholeModel();
//Make sure the models from the two controllers are identical
@@ -352,7 +354,7 @@ public void testParseAndMarshalModel1_2WithShowModels() throws Exception {
AdditionalInitialization additionalInit = new BaseAdditionalInitalization();
- KernelServices servicesA = super.installInController(additionalInit, subsystemXml);
+ KernelServices servicesA = createKernelServicesBuilder(additionalInit).setSubsystemXml(subsystemXml).build();
//Get the model and the persisted xml from the first controller
ModelNode modelA = servicesA.readWholeModel();
String marshalled = servicesA.getPersistedSubsystemXml();
@@ -362,7 +364,7 @@ public void testParseAndMarshalModel1_2WithShowModels() throws Exception {
compareXml(null, subsystemXml, marshalled, true);
//Install the persisted xml from the first controller into a second controller
- KernelServices servicesB = super.installInController(additionalInit, marshalled);
+ KernelServices servicesB = createKernelServicesBuilder(additionalInit).setSubsystemXml(marshalled).build();
ModelNode modelB = servicesB.readWholeModel();
//Make sure the models from the two controllers are identical
@@ -380,7 +382,7 @@ public void testParseAndMarshalModel1_2WithShowModelsAndOldPropertyFormat() thro
AdditionalInitialization additionalInit = new BaseAdditionalInitalization();
- KernelServices servicesA = super.installInController(additionalInit, subsystemXml);
+ KernelServices servicesA = createKernelServicesBuilder(additionalInit).setSubsystemXml(subsystemXml).build();
//Get the model and the persisted xml from the first controller
ModelNode modelA = servicesA.readWholeModel();
Assert.assertTrue(modelA.get(SUBSYSTEM, "jmx", CommonAttributes.EXPOSE_MODEL, CommonAttributes.RESOLVED).hasDefined(CommonAttributes.PROPER_PROPERTY_FORMAT));
@@ -392,7 +394,7 @@ public void testParseAndMarshalModel1_2WithShowModelsAndOldPropertyFormat() thro
compareXml(null, subsystemXml, marshalled, true);
//Install the persisted xml from the first controller into a second controller
- KernelServices servicesB = super.installInController(additionalInit, marshalled);
+ KernelServices servicesB = createKernelServicesBuilder(additionalInit).setSubsystemXml(marshalled).build();
ModelNode modelB = servicesB.readWholeModel();
//Make sure the models from the two controllers are identical
@@ -408,7 +410,7 @@ public void testDescribeHandler() throws Exception {
" <expose-expression-model domain-name=\"jboss.EXPRESSION\"/>" +
" <remoting-connector />" +
"</subsystem>";
- KernelServices servicesA = super.installInController(subsystemXml);
+ KernelServices servicesA = createKernelServicesBuilder(null).setSubsystemXml(subsystemXml).build();
//Get the model and the describe operations from the first controller
ModelNode modelA = servicesA.readWholeModel();
ModelNode describeOp = new ModelNode();
@@ -423,7 +425,7 @@ public void testDescribeHandler() throws Exception {
//Install the describe options from the first controller into a second controller
- KernelServices servicesB = super.installInController(operations);
+ KernelServices servicesB = createKernelServicesBuilder(null).setBootOperations(operations).build();
ModelNode modelB = servicesB.readWholeModel();
//Make sure the models from the two controllers are identical
@@ -435,7 +437,7 @@ public void testShowModelAlias() throws Exception {
String subsystemXml =
"<subsystem xmlns=\"" + Namespace.CURRENT.getUriString() + "\"/>";
- KernelServices services = super.installInController(subsystemXml);
+ KernelServices services = createKernelServicesBuilder(null).setSubsystemXml(subsystemXml).build();
ModelNode model = services.readWholeModel();
Assert.assertFalse(model.get(SUBSYSTEM, JMXExtension.SUBSYSTEM_NAME, CommonAttributes.EXPOSE_MODEL, CommonAttributes.RESOLVED).isDefined());
@@ -523,7 +525,7 @@ public void testTransformation_1_0_0() throws Exception {
checkOutcome(mainServices.executeOperation(op));
checkOutcome(mainServices.executeOperation(oldVersion, transformedOp));
legacyModel = checkSubsystemModelTransformation(mainServices, oldVersion);
- check_1_0_0_Model(legacyModel.get(SUBSYSTEM, mainSubsystemName), true, false);
+ check_1_0_0_Model(legacyModel.get(SUBSYSTEM, getMainSubsystemName()), true, false);
op = createOperation(ADD, CommonAttributes.EXPOSE_MODEL, CommonAttributes.RESOLVED);
@@ -531,7 +533,7 @@ public void testTransformation_1_0_0() throws Exception {
checkOutcome(mainServices.executeOperation(op));
checkOutcome(mainServices.executeOperation(oldVersion, transformedOp));
legacyModel = checkSubsystemModelTransformation(mainServices, oldVersion);
- check_1_0_0_Model(legacyModel.get(SUBSYSTEM, mainSubsystemName), true, true);
+ check_1_0_0_Model(legacyModel.get(SUBSYSTEM, getMainSubsystemName()), true, true);
}
View
4 messaging/src/test/java/org/jboss/as/messaging/test/SubsystemDescriptionsUnitTestCase.java
@@ -50,14 +50,12 @@ public SubsystemDescriptionsUnitTestCase() {
public void testSubsystemDescriptions() throws Exception {
List<ModelNode> empty = Collections.emptyList();
- KernelServices servicesA = super.installInController(empty);
+ KernelServices servicesA = createKernelServicesBuilder(null).setBootOperations(empty).build();
final ModelNode operation = createReadResourceDescriptionOperation();
final ModelNode result = servicesA.executeOperation(operation);
Assert.assertEquals(ModelDescriptionConstants.SUCCESS, result.get(ModelDescriptionConstants.OUTCOME).asString());
- final ModelNode description = result.get("result");
-
servicesA.shutdown();
}
View
6 osgi/service/src/test/java/org/jboss/as/osgi/parser/OSGiSubsystemTestCase.java
@@ -255,16 +255,16 @@ public void testTransformers1_0_0() throws Exception {
checkSubsystemModelTransformation(mainServices, modelVersion);
//Check that start level was removed
- ModelNode currentModule1 = current.get(ModelDescriptionConstants.SUBSYSTEM, mainSubsystemName, ModelConstants.CAPABILITY, "org.acme.module1");
+ ModelNode currentModule1 = current.get(ModelDescriptionConstants.SUBSYSTEM, getMainSubsystemName(), ModelConstants.CAPABILITY, "org.acme.module1");
Assert.assertTrue(currentModule1.isDefined());
Assert.assertTrue(currentModule1.has(ModelConstants.STARTLEVEL));
Assert.assertFalse(currentModule1.hasDefined(ModelConstants.STARTLEVEL));
- ModelNode legacyModule1 = legacy.get(ModelDescriptionConstants.SUBSYSTEM, mainSubsystemName, ModelConstants.CAPABILITY, "org.acme.module1");
+ ModelNode legacyModule1 = legacy.get(ModelDescriptionConstants.SUBSYSTEM, getMainSubsystemName(), ModelConstants.CAPABILITY, "org.acme.module1");
Assert.assertTrue(legacyModule1.isDefined());
Assert.assertFalse(legacyModule1.has(ModelConstants.STARTLEVEL));
- ModelNode transformedModule1 = mainServices.readTransformedModel(modelVersion).get(SUBSYSTEM, mainSubsystemName, ModelConstants.CAPABILITY, "org.acme.module1");
+ ModelNode transformedModule1 = mainServices.readTransformedModel(modelVersion).get(SUBSYSTEM, getMainSubsystemName(), ModelConstants.CAPABILITY, "org.acme.module1");
Assert.assertTrue(transformedModule1.isDefined());
Assert.assertFalse(legacyModule1.has(ModelConstants.STARTLEVEL));
}
View
5 subsystem-test/src/main/java/org/jboss/as/subsystem/test/AbstractSubsystemTest.java
@@ -41,6 +41,7 @@ protected AbstractSubsystemTest(final String mainSubsystemName, final Extension
this(mainSubsystemName, mainExtension, null);
}
+ @SuppressWarnings("deprecation")
protected AbstractSubsystemTest(final String mainSubsystemName, final Extension mainExtension, final Comparator<PathAddress> removeOrderComparator) {
this.mainSubsystemName = mainSubsystemName;
this.delegate = new SubsystemTestDelegate(this.getClass(), mainSubsystemName, mainExtension, removeOrderComparator);
@@ -121,6 +122,7 @@ protected String outputModel(ModelNode model) throws Exception {
* @deprecated Use {@link #createKernelServicesBuilder(AdditionalInitialization)} instead
*/
@Deprecated
+ @SuppressWarnings("deprecation")
protected KernelServices installInController(String subsystemXml) throws Exception {
return delegate.installInController(subsystemXml);
}
@@ -133,6 +135,7 @@ protected KernelServices installInController(String subsystemXml) throws Excepti
* @deprecated Use {@link #createKernelServicesBuilder(AdditionalInitialization)} instead
*/
@Deprecated
+ @SuppressWarnings("deprecation")
protected KernelServices installInController(AdditionalInitialization additionalInit, String subsystemXml) throws Exception {
return delegate.installInController(additionalInit, subsystemXml);
}
@@ -144,6 +147,7 @@ protected KernelServices installInController(AdditionalInitialization additional
* @deprecated Use {@link #createKernelServicesBuilder(AdditionalInitialization)} instead
*/
@Deprecated
+ @SuppressWarnings("deprecation")
protected KernelServices installInController(List<ModelNode> bootOperations) throws Exception {
return delegate.installInController(bootOperations);
}
@@ -241,6 +245,7 @@ protected Resource grabRootResource(ModelTestKernelServices<?> kernelServices) {
* @deprecated this might no longer be needed following refactoring of TransformerRegistry
*/
@Deprecated
+ @SuppressWarnings("deprecation")
protected void generateLegacySubsystemResourceRegistrationDmr(KernelServices kernelServices, ModelVersion modelVersion) throws IOException {
delegate.generateLegacySubsystemResourceRegistrationDmr(kernelServices, modelVersion);
View
3 subsystem-test/src/main/java/org/jboss/as/subsystem/test/KernelServices.java
@@ -41,8 +41,7 @@
*
* @param modelVersion the subsystem model version of the legacy subsystem model controller
* @param op the operation for the main controller
- * @throws IllegalStateException if this is not the test's main model controller
- * @throws IllegalStateException if there is no legacy controller containing the version of the subsystem
+ * @throws IllegalStateException if this is not the test's main model controller or if there is no legacy controller containing the version of the subsystem
*/
ModelNode executeOperation(final ModelVersion modelVersion, final TransformedOperation op);
View
10 ...ystem-test/src/main/java/org/jboss/as/subsystem/test/LegacyKernelServicesInitializer.java
@@ -30,16 +30,16 @@
* Contains the initialization of a controller containing a legacy version of a subsystem.
*
*
- * @see KernelServicesBuilder#createLegacyKernelServicesBuilder(AdditionalInitialization, org.jboss.as.controller.ModelVersion, String, String...)
+ * @see KernelServicesBuilder#createLegacyKernelServicesBuilder(AdditionalInitialization, org.jboss.as.controller.ModelVersion) (AdditionalInitialization, org.jboss.as.controller.ModelVersion, String, String...)
* @author <a href="kabir.khan@jboss.com">Kabir Khan</a>
*/
public interface LegacyKernelServicesInitializer {
/**
- * Sets the name of the extension class name. If not set the {@link AbstractSubsystemTest#mainExtension} will be used for the test class which created the
+ * Sets the name of the extension class name. If not set the {@link org.jboss.as.subsystem.test.AbstractSubsystemTest#getMainExtension()} will be used for the test class which created the
* {@link KernelServicesBuilder} used to create this legacy kernel services initializer
*
- * @param extensionClassName The name of the extension class. If {@code null} the name of the class of {@link AbstractSubsystemTest#mainExtension} will be used
+ * @param extensionClassName The name of the extension class. If {@code null} the name of the class of {@link org.jboss.as.subsystem.test.AbstractSubsystemTest#getMainExtension()} will be used
* @return this initializer
*/
LegacyKernelServicesInitializer setExtensionClassName(String extensionClassName);
@@ -88,7 +88,7 @@
/**
* Add a class name pattern that should be loaded from the parent classloader
*
- * @param the class name pattern
+ * @param pattern class name pattern
* @return this initializer
*/
LegacyKernelServicesInitializer addParentFirstClassPattern(String pattern);
@@ -96,7 +96,7 @@
/**
* Add a class name pattern that should be loaded from the child classloader
*
- * @param the class name pattern
+ * @param pattern class name pattern
* @return this initializer
*/
LegacyKernelServicesInitializer addChildFirstClassPattern(String pattern);
View
5 subsystem-test/src/main/java/org/jboss/as/subsystem/test/SubsystemTestDelegate.java
@@ -44,14 +44,12 @@
import java.util.ListIterator;
import java.util.Map;
import java.util.Set;
-
import javax.xml.namespace.QName;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import junit.framework.Assert;
-
import org.jboss.as.controller.AttributeDefinition;
import org.jboss.as.controller.CompositeOperationHandler;
import org.jboss.as.controller.Extension;
@@ -453,9 +451,6 @@ private ExtensionRegistry cloneExtensionRegistry(AdditionalInitialization additi
epc.setSubsystemXmlMapping(entry.getKey(), namespace, null);
}
}
- for (String namespace : extensionParsingRegistry.getUnnamedNamespaces(extension)) {
- epc.setSubsystemXmlMapping(namespace, null);
- }
}
return clone;
View
6 ...est/java/org/jboss/as/subsystem/test/validation/subsystem/ValidateSubsystemExtension.java
@@ -9,6 +9,7 @@
import javax.xml.stream.XMLStreamConstants;
import javax.xml.stream.XMLStreamException;
+import org.jboss.as.controller.AbstractAddStepHandler;
import org.jboss.as.controller.Extension;
import org.jboss.as.controller.ExtensionContext;
import org.jboss.as.controller.OperationContext;
@@ -67,9 +68,10 @@ public void initialize(ExtensionContext context) {
final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(subsystemResource);
//We always need to add an 'add' operation
registration.registerOperationHandler(ADD,
- new OperationStepHandler() {
+ new AbstractAddStepHandler(){
@Override
- public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
+ protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException {
+
}
},
addDescriptionProvider,

0 comments on commit a64e95c

Please sign in to comment.
Something went wrong with that request. Please try again.