public static ArchiveType warType() { return getModuleType(ModuleType.WAR.toString()); }
/** * Return the file extension string for this enumeration. */ public String getModuleExtension() { return (moduleExtension[getValue()]); }
/** * Return the string name of this ModuleType or the * integer value if outside the bounds of the table */ public String toString() { String[] strTable = getStringTable(); int index = value - getOffset(); if (strTable != null && index >= 0 && index < strTable.length) return strTable[index]; else return Integer.toString (value); }
Object[] args = { new Integer(moduleType.getValue()) }; String[] sig = { int.class.getName() }; SerializableTargetModuleID[] modules = (SerializableTargetModuleID[])server.invoke(jsr88MBean, "getAvailableModules", args, sig); String moduleID = id.getModuleID(); boolean isRunning = id.isRunning(); ModuleType type = ModuleType.getModuleType(id.getModuleType()); TargetModuleIDImpl tmid = new TargetModuleIDImpl(this, moduleID, null, isRunning, type); convertChildren(tmid, id);
if (moduleName.endsWith(ModuleType.EAR.getModuleExtension())) moduleType = ModuleType.EAR; else if (moduleName.endsWith(ModuleType.WAR.getModuleExtension())) moduleType = ModuleType.WAR; else if (moduleName.endsWith(ModuleType.RAR.getModuleExtension())) moduleType = ModuleType.RAR; else
if (moduleName.endsWith(ModuleType.EAR.getModuleExtension())) moduleType = ModuleType.EAR; else if (moduleName.endsWith(ModuleType.WAR.getModuleExtension())) moduleType = ModuleType.WAR; else if (moduleName.endsWith(ModuleType.RAR.getModuleExtension())) moduleType = ModuleType.RAR; else
public static ArchiveType earType() { return getModuleType(ModuleType.EAR.toString()); }
/** * Return the file extension string for this enumeration. */ public String getModuleExtension() { return (moduleExtension[getValue()]); }
/** * Return the string name of this ModuleType or the * integer value if outside the bounds of the table */ public String toString() { String[] strTable = getStringTable(); int index = value - getOffset(); if (strTable != null && index >= 0 && index < strTable.length) return strTable[index]; else return Integer.toString (value); }
if (spool) { if (moduleStream != null) { moduleArchive = createTempFile(moduleType == null? null: moduleType.getModuleExtension()); copyTo(moduleArchive, moduleStream);
public static ArchiveType rarType() { return getModuleType(ModuleType.RAR.toString()); }
@Override public int getValue() { return super.getValue(); } @Override
/** * Return the string name of this ModuleType or the * integer value if outside the bounds of the table */ public String toString() { String[] strTable = getStringTable(); int index = value - getOffset(); if (strTable != null && index >= 0 && index < strTable.length) return strTable[index]; else return Integer.toString (value); }
if (spool) { if (moduleStream != null) { moduleArchive = createTempFile(moduleType == null? null: moduleType.getModuleExtension()); copyTo(moduleArchive, moduleStream);
public static ArchiveType ejbType() { return getModuleType(ModuleType.EJB.toString()); }
/** * Return the file extension string for this enumeration. */ public String getModuleExtension() { return (moduleExtension[getValue()]); }
public static ArchiveType carType() { return getModuleType(ModuleType.CAR.toString()); }
public boolean accept(ConfigurationInfo info) { return moduleType == null || info.getType() == ConfigurationModuleType.getFromValue(moduleType.getValue()); } };
/** * * This API is used to help determine if the sniffer should recognize * the current archive. * If the sniffer does not support the archive type associated with * the current deployment, the sniffer should not recognize the archive. * * @param archiveType the archive type to check * @return whether the sniffer supports the archive type * */ public boolean supportsArchiveType(ArchiveType archiveType) { if (archiveType.toString().equals(ModuleType.EAR.toString())) { return true; } return false; }
public SerializableTargetModuleID(SerializableTargetModuleID parent, TargetModuleIDImpl impl) { parentModuleID = parent; moduleID = impl.getModuleID(); moduleType = impl.getModuleType().getValue(); TargetModuleID[] children = impl.getChildTargetModuleID(); int length = children != null ? children.length : 0; for (int n = 0; n < length; n++) { TargetModuleIDImpl child = (TargetModuleIDImpl)children[n]; childModuleIDs.add(new SerializableTargetModuleID(this, child)); } }