@Override
public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
super.registerAttributes(resourceRegistration);
resourceRegistration.registerReadOnlyAttribute(NAME, null);
resourceRegistration.registerReadWriteAttribute(DEFAULT_INTERFACE, null, new ReloadRequiredWriteAttributeHandler(DEFAULT_INTERFACE) {
protected void validateUpdatedModel(final OperationContext context, final Resource model) throws OperationFailedException {
validateDefaultInterfaceReference(context, model.getModel());
}
});
if (forDomainModel) {
/* This will be reintroduced for 7.2.0, leave commented out
resourceRegistration.registerReadWriteAttribute(INCLUDES, null, new WriteAttributeHandlers.AttributeDefinitionValidatingHandler(INCLUDES));
*/
} else {
resourceRegistration.registerReadWriteAttribute(PORT_OFFSET, null, new ReloadRequiredWriteAttributeHandler(PORT_OFFSET));
}
}