Package org.glassfish.ejb.embedded
Class DeploymentElement
- java.lang.Object
-
- org.glassfish.ejb.embedded.DeploymentElement
-
public class DeploymentElement extends Object
Wrapper that allows to distinguish between an EJB module and a library reference.- Author:
- Marina Vatkina
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDeploymentElement.ResultApplication
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcountEJBModules(Set<DeploymentElement> modules)static DeploymentElement.ResultApplicationgetOrCreateApplication(Set<DeploymentElement> modules, String appName)Create deployable application from a Set of DeploymentElements.static DeploymentElementgetWar(Set<DeploymentElement> modules)static booleanhasEJBModule(Set<DeploymentElement> modules)static booleanhasLibrary(Set<DeploymentElement> modules)static booleanhasWar(Set<DeploymentElement> modules)
-
-
-
Method Detail
-
hasEJBModule
public static boolean hasEJBModule(Set<DeploymentElement> modules)
-
hasWar
public static boolean hasWar(Set<DeploymentElement> modules)
-
getWar
public static DeploymentElement getWar(Set<DeploymentElement> modules)
-
hasLibrary
public static boolean hasLibrary(Set<DeploymentElement> modules)
-
countEJBModules
public static int countEJBModules(Set<DeploymentElement> modules)
-
getOrCreateApplication
public static DeploymentElement.ResultApplication getOrCreateApplication(Set<DeploymentElement> modules, String appName) throws jakarta.ejb.EJBException, IOException
Create deployable application from a Set of DeploymentElements.- Parameters:
modules- the Set of DeploymentElements.- Returns:
- deployable application.
- Throws:
jakarta.ejb.EJBExceptionIOException
-
-