Package org.jboss.as.weld.util
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getDeploymentUnitId(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
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.static boolean
isClassesRoot(org.jboss.as.server.deployment.module.ResourceRoot resourceRoot)
static <K,V>
voidputIfValueNotNull(Map<K,V> map, K key, V value)
static void
registerAsComponent(String listener, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
-
-
-
Method Detail
-
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)
-
-