Package org.jboss.as.weld.util
Class Utils
java.lang.Object
org.jboss.as.weld.util.Utils
Various utilities for working with WildFly APIs
- Author:
- Jozef Hartinger
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDeploymentUnitId(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) static org.jboss.as.server.deployment.DeploymentUnitgetRootDeploymentUnit(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) Returns the parent of the given deployment unit if such a parent exists.static booleanisClassesRoot(org.jboss.as.server.deployment.module.ResourceRoot resourceRoot) static <K,V> void putIfValueNotNull(Map<K, V> map, K key, V value) static voidregisterAsComponent(String listener, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
-
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
-