diff --git a/controller/src/main/java/org/jboss/as/controller/OperationContext.java b/controller/src/main/java/org/jboss/as/controller/OperationContext.java index 42252fa0893..5a545abcd3b 100644 --- a/controller/src/main/java/org/jboss/as/controller/OperationContext.java +++ b/controller/src/main/java/org/jboss/as/controller/OperationContext.java @@ -30,6 +30,7 @@ import org.jboss.as.controller.access.Caller; import org.jboss.as.controller.access.Environment; import org.jboss.as.controller.access.ResourceAuthorization; +import org.jboss.as.controller.capability.CapabilityServiceSupport; import org.jboss.as.controller.capability.RuntimeCapability; import org.jboss.as.controller.client.MessageSeverity; import org.jboss.as.controller.notification.Notification; @@ -969,6 +970,17 @@ public interface OperationContext extends ExpressionResolver { */ ServiceName getCapabilityServiceName(String capabilityBaseName, String dynamicPart, Class serviceType); + /** + * Gets a support object that allows service implementations installed from this context to + * integrate with capabilities. + * + * @return the support object. Will not return {@code null} + * + * * @throws java.lang.IllegalStateException if {@link #getCurrentStage() the current stage} is {@link Stage#MODEL}. + * Service integration is not supported in the model stage. + */ + CapabilityServiceSupport getCapabilityServiceSupport(); + /** * Whether normally this operation would require a runtime step. It returns {@code true in the following cases} *