javax.enterprise.deploy.shared

Class ModuleType


public class ModuleType
extends Object

Enumeration for status actions.

Field Summary

static ModuleType
CAR
static ModuleType
EAR
static ModuleType
EJB
static ModuleType
RAR
static ModuleType
WAR

Constructor Summary

ModuleType(int value)
Creates the action type.

Method Summary

protected ModuleType[]
getEnumValueTable()
Returns the string table for action type.
static ModuleType
getModuleType(int value)
Returns an action of the type.
protected int
getOffset()
Returns the lowest integer value.
protected String[]
getStringTable()
Returns the string table for action type.
int
getValue()
Returns the type.
String
toString()
Returns the string name.

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

CAR

public static final ModuleType CAR
Usages and Demos :

View More Examples of CAR
   1: import javax.enterprise.deploy.model.exceptions.DDBeanCreateException;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: 
   4:         ...
   5:     public ClientDeployable(URL moduleURL) throws DDBeanCreateException {
   6:         super(ModuleType.CAR, moduleURL, "META-INF/application-client.xml");
   7:     }
   8: }

View Full Code Here
   1: 
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: 
   4:         ...
   5:     public void testCustomReplaceObject1() throws Exception {
   6:         ModuleType type = ModuleType.CAR;
   7:         ReplacerResolver replacerResolver = new DeploymentReplacerResolver();
   8:         ...
   9:     public void testCustomResolveObject1() throws Exception {
  10:         ModuleType type = ModuleType.CAR;
  11:         ReplacerResolver replacerResolver = new DeploymentReplacerResolver();

View Full Code Here
   1: import javax.enterprise.deploy.model.exceptions.DDBeanCreateException;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: 
   4:         ...
   5:         assertEquals(deployable, root.getDeployableObject());
   6:         assertEquals(ModuleType.CAR, root.getType());
   7:         assertEquals("/", root.getXpath());
   8:         ...
   9: 
  10:         public ModuleType getType() {
  11:         ...
  12:             return ModuleType.CAR;

View Full Code Here
   1: import java.util.Arrays;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import javax.enterprise.deploy.spi.TargetModuleID;
   4:         ...
   5: 
   6:     private static final ModuleType[] ALL = new ModuleType[] {ModuleType.CAR,
   7:         ...
   8:         ModuleType.EAR,
   9:         ModuleType.EJB,
  10:         ...
  11:                     selected = true;
  12:                     type = ModuleType.CAR;

View Full Code Here
   1: import java.util.Iterator;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import org.xml.sax.SAXParseException;
   4:         ...
   5:     
   6:     public ModuleType getModuleType() {
   7:         ...
   8:         return ModuleType.CAR;
   9:     }        

View Full Code Here

EAR

public static final ModuleType EAR
Usages and Demos :

View More Examples of EAR
   1: import javax.enterprise.deploy.model.exceptions.DDBeanCreateException;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: 
   4:         ...
   5:     public ApplicationDeployable(URL moduleURL) throws DDBeanCreateException {
   6:         super(ModuleType.EAR, moduleURL, "META-INF/application.xml");
   7:         DDBean[] moduleBeans = getChildBean("/application/module");
   8:         ...
   9: 
  10:     public void addXpathListener(ModuleType type, String xpath, XpathListener xpl) {
  11:     }
  12:         ...
  13: 
  14:     public void removeXpathListener(ModuleType type, String xpath, XpathListener xpl) {

View Full Code Here
   1: import javax.enterprise.deploy.model.exceptions.DDBeanCreateException;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: 
   4:         ...
   5: 
   6:     public void addXpathListener(ModuleType type, String xpath, XpathListener xpl) {
   7:         throw new UnsupportedOperationException();
   8:         ...
   9: 
  10:     public DDBean[] getChildBean(ModuleType type, String xpath) {
  11:         throw new UnsupportedOperationException();
  12:         ...
  13:     public ModuleType getType() {
  14:         return ModuleType.EAR;

View Full Code Here
   1: import java.util.Arrays;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import javax.enterprise.deploy.spi.TargetModuleID;
   4:         ...
   5: 
   6:     private static final ModuleType[] ALL = new ModuleType[] {ModuleType.CAR,
   7:         ...
   8:         ModuleType.EAR,
   9:         ModuleType.EJB,
  10:         ...
  11:                     selected = true;
  12:                     type = ModuleType.EAR;

View Full Code Here
   1: import java.util.Arrays;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import javax.enterprise.deploy.spi.TargetModuleID;
   4:         ...
   5:     private boolean selected;
   6:     private ModuleType type;
   7: 
   8:         ...
   9:                     selected = true;
  10:                     type = ModuleType.EJB;
  11:                     break;
  12:         ...
  13:                     selected = true;
  14:                     type = ModuleType.EAR;

View Full Code Here
   1: import com.sun.enterprise.config.serverbeans.Mbean;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import com.sun.enterprise.deployment.backend.DeploymentUtils;
   4:         ...
   5:     private String subModuleName = null;
   6:     private ModuleType moduleType = null;
   7:     private String ddLocation = null;
   8:         ...
   9:             ddLocation = j2eeApps[i].getLocation();
  10:             return ModuleType.EAR;
  11:                     }

View Full Code Here

EJB

public static final ModuleType EJB
Usages and Demos :

View More Examples of EJB
   1: import javax.enterprise.deploy.model.exceptions.DDBeanCreateException;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import org.dom4j.io.SAXReader;
   4:         ...
   5:     public EjbDeployableObject(JarFile jar, ClassLoader loader) {
   6:         super(jar, ModuleType.EJB, createEjbJarRoot(jar), loader);
   7:     }
   8: 
   9:     public DDBeanRoot getDDBeanRoot(String filename) throws FileNotFoundException, DDBeanCreateException {

View Full Code Here
   1: import java.util.Arrays;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import javax.enterprise.deploy.spi.TargetModuleID;
   4:         ...
   5: 
   6:     private static final ModuleType[] ALL = new ModuleType[] {ModuleType.CAR,
   7:         ModuleType.EAR,
   8:         ...
   9:         ModuleType.EJB,
  10:         ModuleType.RAR,
  11:         ...
  12:                     selected = true;
  13:                     type = ModuleType.EJB;

View Full Code Here
   1: import java.util.logging.Level;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import org.xml.sax.SAXParseException;
   4:         ...
   5:     
   6:     public ModuleType getModuleType() {
   7:         ...
   8:         return ModuleType.EJB;
   9:     }                       

View Full Code Here
   1: import java.util.Arrays;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import javax.enterprise.deploy.spi.TargetModuleID;
   4:         ...
   5:     private boolean selected;
   6:     private ModuleType type;
   7: 
   8:         ...
   9:                     selected = true;
  10:                     type = ModuleType.EJB;
  11:                     break;
  12:         ...
  13:                     selected = true;
  14:                     type = ModuleType.CAR;

View Full Code Here
   1: import com.sun.enterprise.config.serverbeans.Mbean;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import com.sun.enterprise.deployment.backend.DeploymentUtils;
   4:         ...
   5:     private String subModuleName = null;
   6:     private ModuleType moduleType = null;
   7:     private String ddLocation = null;
   8:         ...
   9:             ddLocation = eModules[i].getLocation();
  10:             return ModuleType.EJB;
  11:                     }

View Full Code Here

RAR

public static final ModuleType RAR
Usages and Demos :

View More Examples of RAR
   1: import javax.enterprise.deploy.model.exceptions.DDBeanCreateException;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: 
   4:         ...
   5: 
   6:         public ModuleType getType() {
   7:         ...
   8:             return ModuleType.RAR;
   9:         }

View Full Code Here
   1: import java.util.logging.Level;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: 
   4:         ...
   5:     
   6:     public ModuleType getModuleType() {
   7:         ...
   8:         return ModuleType.RAR;
   9:     }        

View Full Code Here
   1: import java.util.Arrays;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import javax.enterprise.deploy.spi.TargetModuleID;
   4:         ...
   5: 
   6:     private static final ModuleType[] ALL = new ModuleType[] {ModuleType.CAR,
   7:         ModuleType.EAR,
   8:         ...
   9:         ModuleType.EJB,
  10:         ModuleType.RAR,
  11:         ModuleType.WAR};
  12:         ...
  13:                     selected = true;
  14:                     type = ModuleType.RAR;

View Full Code Here
   1: import java.util.Properties;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: 
   4:         ...
   5: 
   6:             if (md.getModuleType().equals(ModuleType.WAR) 
   7:         ...
   8:                 || md.getModuleType().equals(ModuleType.RAR)) {
   9:                 continue;

View Full Code Here
   1: 
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: 
   4:         ...
   5:     
   6:     public ModuleType getModuleType() {
   7:         ...
   8:         return ModuleType.RAR;
   9:     }    

View Full Code Here

WAR

public static final ModuleType WAR
Usages and Demos :

View More Examples of WAR
   1: import javax.enterprise.deploy.model.exceptions.DDBeanCreateException;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: 
   4:         ...
   5:     public WebDeployable(URL moduleURL) throws DDBeanCreateException {
   6:         super(ModuleType.WAR, moduleURL, "WEB-INF/web.xml");
   7:         ClassLoader parent = super.getModuleLoader();
   8:         List path = new ArrayList();
   9:         path.add(parent.getResource("WEB-INF/classes/"));

View Full Code Here
   1: import javax.enterprise.deploy.model.exceptions.DDBeanCreateException;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import org.dom4j.io.SAXReader;
   4:         ...
   5:     public WebDeployableObject(JarFile jar, ClassLoader loader) {
   6:         super(jar, ModuleType.WAR, createWebAppRoot(jar), loader);
   7:     }
   8: 
   9:     public DDBeanRoot getDDBeanRoot(String filename) throws FileNotFoundException, DDBeanCreateException {

View Full Code Here
   1: import java.util.Arrays;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import javax.enterprise.deploy.spi.TargetModuleID;
   4:         ...
   5: 
   6:     private static final ModuleType[] ALL = new ModuleType[] {ModuleType.CAR,
   7:         ModuleType.EAR,
   8:         ...
   9:         ModuleType.RAR,
  10:         ModuleType.WAR};
  11:     
  12:         ...
  13:                     selected = true;
  14:                     type = ModuleType.WAR;

View Full Code Here
   1: import javax.enterprise.deploy.shared.CommandType;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import javax.enterprise.deploy.spi.Target;
   4:         ...
   5:         if(isWebApp(kernel, parentName)) {
   6:             moduleID.setType(ModuleType.WAR);
   7:         }
   8:         ...
   9:                 if(isWebApp(kernel, id.getModuleID())) {
  10:                     id.setType(ModuleType.WAR);
  11:                 }

View Full Code Here
   1: 
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import javax.enterprise.deploy.spi.Target;
   4:         ...
   5:         Target[] targets = server.getTargets();
   6:         TargetModuleID[] ids = server.getRunningModules(ModuleType.WAR, targets);
   7:         assertEquals(runningID1.length, ids.length);
   8:         ...
   9:         Target[] targets = server.getTargets();
  10:         TargetModuleID[] ids = server.getNonRunningModules(ModuleType.WAR, targets);
  11:         assertEquals(nonRunningID1.length + nonRunningID2.length, ids.length);
  12:         ...
  13:         Target[] targets = server.getTargets();
  14:         TargetModuleID[] ids = server.getAvailableModules(ModuleType.WAR, targets);

View Full Code Here

Constructor Details

ModuleType

protected ModuleType(int value)
Creates the action type.

Method Details

getEnumValueTable

protected ModuleType[] getEnumValueTable()
Returns the string table for action type.

getModuleType

public static ModuleType getModuleType(int value)
Returns an action of the type.
Usages and Demos :

View More Examples of getModuleType(int value)
   1: 
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: 
   4:         ...
   5:     
   6:     public ModuleTypeWrapper(ModuleType aType) {
   7:         if ( null == aType ) {
   8:         ...
   9:     
  10:     public ModuleType getModuleType() {
  11:         ...
  12:         return ModuleType.getModuleType(code);

View Full Code Here
   1: 
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: 
   4:         ...
   5: 
   6: public class XModuleType extends ModuleType {
   7: 
   8:         ...
   9: 
  10:     protected ModuleType[] getEnumValueTable() {
  11:         return this.enumValueTable;
  12:         ...
  13:         } else {
  14:             return ModuleType.getModuleType(value);

View Full Code Here
   1: import javax.enterprise.deploy.shared.DConfigBeanVersionType;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import javax.enterprise.deploy.shared.StateType;
   4:         ...
   5: 
   6:     public TargetModuleID[] getRunningModules(ModuleType moduleType,
   7:         Target[] targetList) throws TargetException, IllegalStateException {
   8:         ...
   9:         }
  10:         return ModuleType.getModuleType(result.intValue());
  11:     }

View Full Code Here

getOffset

protected int getOffset()
Returns the lowest integer value.

getStringTable

protected String[] getStringTable()
Returns the string table for action type.

getValue

public int getValue()
Returns the type.
Usages and Demos :

View More Examples of getValue()
   1: import javax.enterprise.deploy.shared.DConfigBeanVersionType;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: import javax.enterprise.deploy.spi.DeploymentConfiguration;
   4:         ...
   5: 
   6:     public TargetModuleID[] getAvailableModules(final ModuleType moduleType, Target[] targetList) throws TargetException {
   7:         ConfigFilter filter = new ConfigFilter() {
   8:         ...
   9:             public boolean accept(ConfigurationInfo info) {
  10:                 return moduleType == null || info.getType() == ConfigurationModuleType.getFromValue(moduleType.getValue());
  11:             }
  12:         ...
  13:             public boolean accept(ConfigurationInfo info) {
  14:                 return info.getState() != State.RUNNING && (moduleType == null || info.getType() == ConfigurationModuleType.getFromValue(moduleType.getValue()));

View Full Code Here
   1: import java.io.File;
   2: import javax.enterprise.deploy.shared.ModuleType;
   3: 
   4:         ...
   5: 
   6:     public void setType(ModuleType type) {
   7:         if (type != null) {
   8:         ...
   9:             setProperty(TYPE, String.valueOf(type.getValue()));
  10:         }
  11:         ...
  12: 
  13:     public ModuleType getType() {

View Full Code Here

toString

public String toString()
Returns the string name.
Overrides:
toString in interface Object