/** * Get the matching class paths that belong to this deployment unit. * * @param unit the deployment unit * @return matching class paths * @throws Exception for any error */ protected Iterable<VirtualFile> getClassPaths(VFSDeploymentUnit unit) throws Exception { return unit.getClassPath(); } }
public List<VirtualFile> getClassPath() { return delegate.getClassPath(); }
public void visit(DeploymentUnit unit) throws DeploymentException { if (unit instanceof VFSDeploymentUnit == false) return; // This part of the deployment wants its own classloader if (unit != initial && unit.getAttachment(ClassLoadingMetaData.class) != null) return; VFSDeploymentUnit vfsUnit = (VFSDeploymentUnit) unit; List<VirtualFile> paths = vfsUnit.getClassPath(); if (paths != null) classPath.addAll(paths); }
List<VirtualFile> classpath = unit.getClassPath(); if (classpath != null && classpath.isEmpty() == false)
/** * Find file. * * @param className the classname we're looking for * @return virtual file or null if not found * @throws IOException for any exception */ protected VirtualFile findFile(String className) throws IOException { if (excludeFilter != null && excludeFilter.matchesClassName(className)) return null; VirtualFile file = cache.get(className); if (file != null) return file; List<VirtualFile> classPath = unit.getClassPath(); if (classPath != null && classPath.isEmpty() == false) { String path = ClassLoaderUtils.classNameToPath(className); for (VirtualFile cp : classPath) { file = cp.getChild(path); if (file.exists()) { cache.put(className, file); return file; } } } return null; }
/** * Process the * * @param unit the unit * @throws DeploymentException for any error */ protected void deploy(VFSDeploymentUnit unit) throws DeploymentException { if (!unit.getSimpleName().endsWith(".war")) { return; } VirtualFile root = unit.getRoot(); if(root.isFile()) return; List<VirtualFile> classpath = unit.getClassPath(); if(classpath == null || classpath.isEmpty()) return; if (log.isTraceEnabled()) log.trace("Deploying annotations for unit: " + unit + ", classpath: " + classpath); try { processMetaData(unit, classpath); } catch (Exception e) { throw DeploymentException.rethrowAsDeploymentException("Cannot process metadata", e); } }
List<VirtualFile> classpath = vfsUnit.getClassPath(); try
public List<org.jboss.ejb3.vfs.spi.VirtualFile> getResources(org.jboss.ejb3.vfs.spi.VirtualFileFilter filter) List<VirtualFile> classPath = unit.getClassPath(); if(classPath == null || classPath.isEmpty()) return Collections.emptyList();
List<VirtualFile> classpath = vfsDeploymentUnit.getClassPath(); if (classpath == null || classpath.isEmpty())
return; List<VirtualFile> classpath = unit.getClassPath(); if (classpath == null || classpath.isEmpty()) return;
return; List<VirtualFile> classpath = unit.getClassPath(); if(classpath == null || classpath.isEmpty()) return;
List<VirtualFile> classPath = unit.getClassPath(); ArrayList<String> cpURIs = new ArrayList<String>(); for(VirtualFile vf : classPath)
if (warPathName.endsWith("/") == false) warPathName += "/"; List<VirtualFile> classpathVFs = vfsUnit.getClassPath(); if (classpathVFs != null)