Class DeploymentHandlerUtils

    • Constructor Detail

      • DeploymentHandlerUtils

        public DeploymentHandlerUtils()
    • Method Detail

      • asString

        protected static String asString​(org.jboss.dmr.ModelNode node,
                                         String name)
      • getContents

        protected static org.jboss.as.server.deployment.DeploymentHandlerUtil.ContentItem[] getContents​(org.jboss.dmr.ModelNode contentNode)
      • hasValidContentAdditionParameterDefined

        public static boolean hasValidContentAdditionParameterDefined​(org.jboss.dmr.ModelNode operation)
        Checks to see if a valid deployment parameter has been defined.
        Parameters:
        operation - the operation to check.
        Returns:
        true of the parameter is valid, otherwise false.
      • emptyStream

        public static InputStream emptyStream()
      • addFlushHandler

        public static void addFlushHandler​(OperationContext context,
                                           ContentRepository contentRepository,
                                           OperationContext.ResultHandler handler)
        Adds a new result handler that will flush (aka amend commit) the changes in the content repository.
        Parameters:
        context -
        contentRepository -
        handler -