org.glassfish.ejb.embedded
Class DeploymentElement

java.lang.Object
  extended by org.glassfish.ejb.embedded.DeploymentElement

public class DeploymentElement
extends java.lang.Object

Wrapper that allows to distinguish between an EJB module and a library reference.

Author:
Marina Vatkina

Nested Class Summary
protected static class DeploymentElement.ResultApplication
           
 
Method Summary
static int countEJBModules(java.util.Set<DeploymentElement> modules)
           
static DeploymentElement.ResultApplication getOrCreateApplication(java.util.Set<DeploymentElement> modules, java.lang.String appName)
          Create deployable application from a Set of DeploymentElements.
static DeploymentElement getWar(java.util.Set<DeploymentElement> modules)
           
static boolean hasEJBModule(java.util.Set<DeploymentElement> modules)
           
static boolean hasLibrary(java.util.Set<DeploymentElement> modules)
           
static boolean hasWar(java.util.Set<DeploymentElement> modules)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasEJBModule

public static boolean hasEJBModule(java.util.Set<DeploymentElement> modules)

hasWar

public static boolean hasWar(java.util.Set<DeploymentElement> modules)

getWar

public static DeploymentElement getWar(java.util.Set<DeploymentElement> modules)

hasLibrary

public static boolean hasLibrary(java.util.Set<DeploymentElement> modules)

countEJBModules

public static int countEJBModules(java.util.Set<DeploymentElement> modules)

getOrCreateApplication

public static DeploymentElement.ResultApplication getOrCreateApplication(java.util.Set<DeploymentElement> modules,
                                                                         java.lang.String appName)
                                                                  throws EJBException,
                                                                         java.io.IOException
Create deployable application from a Set of DeploymentElements.

Parameters:
modules - the Set of DeploymentElements.
Returns:
deployable application.
Throws:
EJBException
java.io.IOException


Copyright © 2012 GlassFish Community. All Rights Reserved.