private void setType(ClasspathElement element, Archive other) { if (other == null) return; else if (clientToEJBJARs.containsKey(other)) element.setJarType(ClasspathElement.EJB_CLIENT_JAR); else if (other.isEJBJarFile()) element.setJarType(ClasspathElement.EJB_JAR); }
public boolean isEJBJarFile() { if (commonArchive != null) return commonArchive.isEJBJarFile(); if (archive != null) return (JavaEEArchiveUtilities.INSTANCE.getJavaEEQuickPeek(archive).getType() == J2EEConstants.EJB_TYPE); fail(); return false; }
public static int getArchiveType(Archive anArchive) { int type = UNKNOWN; try { if (anArchive.isEJBJarFile()) type = EJBJARFILE; else if (anArchive.isWARFile()) type = WARFILE; else if (anArchive.isApplicationClientFile()) type = CLIENTJARFILE; else if (anArchive.isRARFile()) type = RARFILE; else if (anArchive.isEARFile()) type = EARFILE; } catch (Exception e) { //Ignore } return type; }
protected boolean shouldExpand(Archive anArchive) { int flag = 0; if (anArchive.isWARFile()) flag = Archive.EXPAND_WAR_FILES; else if (anArchive.isEARFile()) flag = Archive.EXPAND_EAR_FILES; else if (anArchive.isRARFile()) flag = Archive.EXPAND_RAR_FILES; else if (anArchive.isEJBJarFile()) flag = Archive.EXPAND_EJBJAR_FILES; else if (anArchive.isApplicationClientFile()) flag = Archive.EXPAND_APPCLIENT_FILES; else flag = Archive.EXPAND_ARCHIVES; return (getExpansionFlags() & flag) != 0; }
protected boolean shouldExpand(Archive anArchive) { int flag = 0; if (anArchive.isWARFile()) flag = Archive.EXPAND_WAR_FILES; else if (anArchive.isEARFile()) flag = Archive.EXPAND_EAR_FILES; else if (anArchive.isEJBJarFile()) flag = Archive.EXPAND_EJBJAR_FILES; else if (anArchive.isRARFile()) flag = Archive.EXPAND_RAR_FILES; else if (anArchive.isApplicationClientFile()) flag = Archive.EXPAND_APPCLIENT_FILES; else flag = Archive.EXPAND_ARCHIVES; return (getExpansionFlags() & flag) != 0; } }
public static int getArchiveType(Archive anArchive) { int type = ImportUtil.UNKNOWN; try { try { if (anArchive.isEJBJarFile()) type = ImportUtil.EJBJARFILE; else if (anArchive.isWARFile()) type = ImportUtil.WARFILE; else if (anArchive.isApplicationClientFile()) type = ImportUtil.CLIENTJARFILE; else if (anArchive.isRARFile()) type = ImportUtil.RARFILE; else if (anArchive.isEARFile()) type = ImportUtil.EARFILE; } catch (Exception e) { //Ignore } } finally { if (anArchive != null) anArchive.close(); } return type; }
public ArchiveWrapper(Archive mFile) { this.commonArchive = mFile; int type = J2EEConstants.UNKNOWN; if (mFile.isApplicationClientFile()) { type = J2EEConstants.APPLICATION_CLIENT_TYPE; } else if (mFile.isEARFile()) { type = J2EEConstants.APPLICATION_TYPE; } else if (mFile.isEJBJarFile()) { type = J2EEConstants.EJB_TYPE; } else if (mFile.isWARFile()) { type = J2EEConstants.WEB_TYPE; } else if (mFile.isRARFile()) { type = J2EEConstants.CONNECTOR_TYPE; } if (type != J2EEConstants.UNKNOWN) { int version = ArchiveUtil.getFastSpecVersion((ModuleFile) mFile); jqp = new JavaEEQuickPeek(type, version); } else { jqp = new JavaEEQuickPeek(null); } }
anArchive = CommonarchiveFactoryImpl.getActiveFactory().openArchive(fileName); try { if (anArchive.isEJBJarFile()) { archiveType = EJBJARFILE; EJBJar ejbJar = ((EJBJarFile) anArchive).getDeploymentDescriptor();