@Override protected boolean requiresRuntime(OperationContext context) { if (context.getProcessType().isServer()) { return super.requiresRuntime(context); } //Check if we are a host's socket binding and install the service if we are PathAddress pathAddress = context.getCurrentAddress(); return pathAddress.size() > 0 && pathAddress.getElement(0).getKey().equals(HOST); }
@Override protected boolean requiresRuntime(OperationContext context) { if (context.getProcessType().isServer()) { return super.requiresRuntime(context); } //Check if we are a host's socket binding and install the service if we are PathAddress pathAddress = context.getCurrentAddress(); return pathAddress.size() > 0 && pathAddress.getElement(0).getKey().equals(HOST); }
if (requiresRuntime(context)) { final ModelNode updatedValue = newValue; context.addStep(operation, new OperationStepHandler() {
if (requiresRuntime(context)) { final ModelNode updatedValue = newValue; context.addStep(operation, new OperationStepHandler() {
if (requiresRuntime(context)) { final ModelNode updatedValue = newValue; context.addStep(new OperationStepHandler() {
if (requiresRuntime(context)) { final ModelNode updatedValue = newValue; context.addStep(new OperationStepHandler() {