@Override public void registerOperations(ManagementResourceRegistration registry) { if (isAcceptor && registerRuntimeOnly) { AcceptorControlHandler.INSTANCE.registerOperations( registry, getResourceDescriptionResolver()); } super.registerOperations(registry); }
@Override public void registerAttributes(ManagementResourceRegistration registry) { super.registerAttributes(registry); OperationStepHandler attributeHandler = new ReloadRequiredWriteAttributeHandler(attrs); for (AttributeDefinition attr : attrs) { if (registerRuntimeOnly || !attr.getFlags().contains(AttributeAccess.Flag.STORAGE_RUNTIME)) { registry.registerReadWriteAttribute(attr, null, attributeHandler); } } if (isAcceptor && registerRuntimeOnly) { AcceptorControlHandler.INSTANCE.registerAttributes(registry); } }