Interface EmbeddedModelControllerClientFactory


  • public interface EmbeddedModelControllerClientFactory
    Factory for obtaining a ModelControllerClient for use by an embedding process.
    Author:
    Brian Stansberry
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.jboss.msc.service.ServiceName SERVICE_NAME
      Only for use within the WildFly kernel; may change or be removed at any time
    • Field Detail

      • SERVICE_NAME

        static final org.jboss.msc.service.ServiceName SERVICE_NAME
        Only for use within the WildFly kernel; may change or be removed at any time
    • Method Detail

      • createEmbeddedClient

        LocalModelControllerClient createEmbeddedClient​(Executor executor)
        Create an in-VM client whose operations are executed as if they were invoked by a user in the RBAC SuperUser role, regardless of any security identity that is or isn't associated with the calling thread when the client is invoked. This client generally should not be used to handle requests from external callers, and if it is used great care should be taken to ensure such use is not suborning the intended access control scheme.

        In a VM with a SecurityManager installed, invocations against the returned client can only occur from a calling context with the org.jboss.as.controller.security.ControllerPermission#PERFORM_IN_VM_CALL PERFORM_IN_VM_CALL permission. Without this permission a SecurityException will be thrown.

        Parameters:
        executor - the executor to use for asynchronous operation execution. Cannot be null
        Returns:
        the client. Will not return null
        Throws:
        SecurityException - if the caller does not have the org.jboss.as.controller.security.ControllerPermission#CAN_ACCESS_MODEL_CONTROLLER CAN_ACCESS_MODEL_CONTROLLER permission