Class Utils

java.lang.Object
org.jboss.as.weld.util.Utils

public class Utils extends Object
Various utilities for working with WildFly APIs
Author:
Jozef Hartinger
  • Method Details

    • isClassesRoot

      public static boolean isClassesRoot(org.jboss.as.server.deployment.module.ResourceRoot resourceRoot)
    • getRootDeploymentUnit

      public static org.jboss.as.server.deployment.DeploymentUnit getRootDeploymentUnit(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
      Returns the parent of the given deployment unit if such a parent exists. If the given deployment unit is the parent deployment unit, it is returned.
    • getDeploymentUnitId

      public static String getDeploymentUnitId(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
    • registerAsComponent

      public static void registerAsComponent(String listener, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
    • putIfValueNotNull

      public static <K, V> void putIfValueNotNull(Map<K,V> map, K key, V value)