Skip to content

Commit

Permalink
[WFLY-16358] add missing AttributeDefinition to ReloadRequiredWriteAt…
Browse files Browse the repository at this point in the history
…tributeHandler in modcluster subsystem.
  • Loading branch information
soul2zimate committed May 9, 2022
1 parent 7369cf1 commit 4208147
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public ManagementResourceRegistration register(ManagementResourceRegistration pa
.addCapabilities(Capability.class)
;

registration.registerReadWriteAttribute(Attribute.SSL_CONTEXT.getDefinition(), null, new ReloadRequiredWriteAttributeHandler() {
registration.registerReadWriteAttribute(Attribute.SSL_CONTEXT.getDefinition(), null, new ReloadRequiredWriteAttributeHandler(Attribute.SSL_CONTEXT.getDefinition()) {
@Override
protected void validateUpdatedModel(OperationContext context, Resource model) {
context.addStep(new OperationStepHandler() {
Expand Down Expand Up @@ -453,7 +453,7 @@ public AttributeValueTranslator getWriteTranslator() {

@Override
public UnaryOperator<PathAddress> getPathAddressTransformation() {
return new UnaryOperator<PathAddress>() {
return new UnaryOperator<>() {
@Override
public PathAddress apply(PathAddress pathAddress) {
return pathAddress.append(SimpleLoadProviderResourceDefinition.PATH);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public ManagementResourceRegistration register(ManagementResourceRegistration pa
;

for (Attribute attribute : Attribute.values()) {
registration.registerReadWriteAttribute(attribute.getDefinition(), null, new ReloadRequiredWriteAttributeHandler() {
registration.registerReadWriteAttribute(attribute.getDefinition(), null, new ReloadRequiredWriteAttributeHandler(attribute.getDefinition()) {
@Override
protected void validateUpdatedModel(OperationContext context, Resource model) {
context.addStep(new OperationStepHandler() {
Expand Down

0 comments on commit 4208147

Please sign in to comment.