public boolean accepts(VFSDeploymentUnit unit) { for (VFSDeploymentUnitFilter filter : filters) { if (filter.accepts(unit) == false) return false; } return true; } }
public void deploy(VFSDeploymentUnit unit, Module module) throws DeploymentException { // we already used mc scanning or some other mechanism to create repo if (unit.isAttachmentPresent(AnnotationRepository.class)) return; // running this deployer is costly, check if it should be run if (filter != null && filter.accepts(unit) == false) return; if (log.isTraceEnabled()) log.trace("Creating AnnotationRepository for " + unit.getName() + ", module: " + module); visitModule(unit); } }