public int getRelativeOrder() { return deployer.getRelativeOrder(); }
public void setRelativeOrder(int order) { deployer.setRelativeOrder(order); }
public boolean isSupportsCandidateAnnotations() { return deployer.isSupportsCandidateAnnotations(); }
public boolean determineStructure(VirtualFile root, VirtualFile parent, VirtualFile file, StructureMetaData metaData, VFSStructuralDeployers deployers) throws DeploymentException { if (file == null) throw new IllegalArgumentException("Null file"); boolean result = deployer.determineStructure(root, parent, file, metaData, deployers); if (log.isTraceEnabled()) { if (result == false) log.trace("Not recognised: " + file.getName()); else log.trace("Recognised: " + file.getName()); } return result; }
public boolean determineStructure(StructureContext context) throws DeploymentException { if (context == null) throw new IllegalArgumentException("Null context"); if (context.isCandidateAnnotationScanning() && deployer.isSupportsCandidateAnnotations() == false) return false; ClassLoader previous = SecurityActions.setContextClassLoader(classLoader); try { boolean result = deployer.determineStructure(context); if (log.isTraceEnabled()) { if (result == false) log.trace("Not recognised: " + context.getName()); else log.trace("Recognised: " + context.getName()); } return result; } finally { SecurityActions.resetContextClassLoader(previous); } }
for (StructureDeployer deployer : theDeployers) if (deployer.determineStructure(context))
for (StructureDeployer deployer : theDeployers) if (deployer.determineStructure(root, parent, file, structureMetaData, this))
public void setRelativeOrder(int order) { deployer.setRelativeOrder(order); }
public int getRelativeOrder() { return deployer.getRelativeOrder(); }