public Class<?> getInput() { return deployer.getInput(); }
/** * Test whether a deployer is relevant * * @param deployer deployer * @param unit the deployment unit * @param isTopLevel whether this is a top level deployment * @param isComponent whether this is a component * @return the deployers */ protected boolean isRelevant(Deployer deployer, DeploymentUnit unit, boolean isTopLevel, boolean isComponent) { // Deployer only wants top level if (deployer.isTopLevelOnly() && isTopLevel == false) return false; // Deployer only wants components if (deployer.isComponentsOnly() && isComponent == false) return false; // Deployer doesn't wants components if (deployer.isWantComponents() == false && isComponent) return false; if (deployer.isAllInputs() == false) { // No attachment for the input type Class<?> input = deployer.getInput(); if (input != null && unit.getAttachment(input) == null) return false; } return true; }