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(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); CompositePropertyResolver propertyResolver = new CompositePropertyResolver(deploymentUnit.getAttachment(Attachments.DEPLOYMENT_PROPERTY_RESOLVERS)); deploymentUnit.putAttachment(Attachments.FINAL_PROPERTY_RESOLVER, propertyResolver); deploymentUnit.putAttachment(Attachments.FINAL_PROPERTY_REPLACER, PropertyReplacers.resolvingReplacer(propertyResolver)); }
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(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); deploymentUnit.putAttachment(Attachments.FINAL_PROPERTY_RESOLVER, new CompositePropertyResolver(deploymentUnit.getAttachment(Attachments.DEPLOYMENT_PROPERTY_RESOLVERS))); }
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); CompositePropertyResolver propertyResolver = new CompositePropertyResolver(deploymentUnit.getAttachment(Attachments.DEPLOYMENT_PROPERTY_RESOLVERS)); deploymentUnit.putAttachment(Attachments.FINAL_PROPERTY_RESOLVER, propertyResolver); deploymentUnit.putAttachment(Attachments.FINAL_PROPERTY_REPLACER, PropertyReplacers.resolvingReplacer(propertyResolver)); }
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); CompositePropertyResolver propertyResolver = new CompositePropertyResolver(deploymentUnit.getAttachment(Attachments.DEPLOYMENT_PROPERTY_RESOLVERS)); deploymentUnit.putAttachment(Attachments.FINAL_PROPERTY_RESOLVER, propertyResolver); deploymentUnit.putAttachment(Attachments.FINAL_PROPERTY_REPLACER, PropertyReplacers.resolvingReplacer(propertyResolver)); }