diff --git a/subsystem/src/main/java/org/wildfly/subsystem/resource/capability/RuntimeCapabilityProvider.java b/subsystem/src/main/java/org/wildfly/subsystem/resource/capability/RuntimeCapabilityProvider.java index 68b3f205e22..d15216d1f58 100644 --- a/subsystem/src/main/java/org/wildfly/subsystem/resource/capability/RuntimeCapabilityProvider.java +++ b/subsystem/src/main/java/org/wildfly/subsystem/resource/capability/RuntimeCapabilityProvider.java @@ -14,16 +14,14 @@ */ public interface RuntimeCapabilityProvider extends Supplier>, ServiceDescriptor { - RuntimeCapability getCapability(); - @Override default String getName() { - return this.getCapability().getName(); + return this.get().getName(); } @SuppressWarnings("unchecked") @Override default Class getType() { - return (Class) this.getCapability().getCapabilityServiceValueType(); + return (Class) this.get().getCapabilityServiceValueType(); } }