public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); DeploymentUnit current = deploymentUnit; final List<PropertyResolver> propertyResolvers = new ArrayList<PropertyResolver>(); do { final Properties deploymentProperties = current.getAttachment(Attachments.DEPLOYMENT_PROPERTIES); if (deploymentProperties != null) { propertyResolvers.add(new PropertiesPropertyResolver(deploymentProperties)); } current = current.getParent(); } while (current != null); if (!propertyResolvers.isEmpty()) { deploymentUnit.addToAttachmentList(Attachments.DEPLOYMENT_PROPERTY_RESOLVERS, new CompositePropertyResolver(propertyResolvers)); } }
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); DeploymentUnit current = deploymentUnit; final List<PropertyResolver> propertyResolvers = new ArrayList<PropertyResolver>(); do { final Properties deploymentProperties = current.getAttachment(Attachments.DEPLOYMENT_PROPERTIES); if (deploymentProperties != null) { propertyResolvers.add(new PropertiesPropertyResolver(deploymentProperties)); } current = current.getParent(); } while (current != null); if (!propertyResolvers.isEmpty()) { deploymentUnit.addToAttachmentList(Attachments.DEPLOYMENT_PROPERTY_RESOLVERS, new CompositePropertyResolver(propertyResolvers)); } }
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); DeploymentUnit current = deploymentUnit; final List<PropertyResolver> propertyResolvers = new ArrayList<PropertyResolver>(); do { final Properties deploymentProperties = current.getAttachment(Attachments.DEPLOYMENT_PROPERTIES); if (deploymentProperties != null) { propertyResolvers.add(new PropertiesPropertyResolver(deploymentProperties)); } current = current.getParent(); } while (current != null); if (!propertyResolvers.isEmpty()) { deploymentUnit.addToAttachmentList(Attachments.DEPLOYMENT_PROPERTY_RESOLVERS, new CompositePropertyResolver(propertyResolvers)); } }
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); DeploymentUnit current = deploymentUnit; final List<PropertyResolver> propertyResolvers = new ArrayList<PropertyResolver>(); do { final Properties deploymentProperties = current.getAttachment(Attachments.DEPLOYMENT_PROPERTIES); if (deploymentProperties != null) { propertyResolvers.add(new PropertiesPropertyResolver(deploymentProperties)); } current = current.getParent(); } while (current != null); if (!propertyResolvers.isEmpty()) { deploymentUnit.addToAttachmentList(Attachments.DEPLOYMENT_PROPERTY_RESOLVERS, new CompositePropertyResolver(propertyResolvers)); } }