public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.JBOSS_DESCRIPTOR_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { PropertyReplacer replacer = deploymentUnit.getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_REPLACER); // Replacer might be null if the EE subsystem isn't installed (e.g. sar w/o ee) TODO clean up this relationship return replacer != null ? replacer : PropertyReplacers.noop(); } else { return PropertyReplacers.noop(); } }
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.ANNOTATION_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { PropertyReplacer replacer = deploymentUnit.getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_REPLACER); // Replacer might be null if the EE subsystem isn't installed (e.g. sar w/o ee) TODO clean up this relationship return replacer != null ? replacer : PropertyReplacers.noop(); } else { return PropertyReplacers.noop(); } }
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.JBOSS_DESCRIPTOR_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { PropertyReplacer replacer = deploymentUnit .getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_REPLACER); return replacer != null ? replacer : PropertyReplacers.noop(); } else { return PropertyReplacers.noop(); } }
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.SPEC_DESCRIPTOR_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { PropertyReplacer replacer = deploymentUnit.getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_REPLACER); // Replacer might be null if the EE subsystem isn't installed (e.g. sar w/o ee) TODO clean up this relationship return replacer != null ? replacer : PropertyReplacers.noop(); } else { return PropertyReplacers.noop(); } }
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.ANNOTATION_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { PropertyReplacer replacer = deploymentUnit.getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_REPLACER); // Replacer might be null if the EE subsystem isn't installed (e.g. sar w/o ee) TODO clean up this relationship return replacer != null ? replacer : PropertyReplacers.noop(); } else { return PropertyReplacers.noop(); } }
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.JBOSS_DESCRIPTOR_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { PropertyReplacer replacer = deploymentUnit .getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_REPLACER); return replacer != null ? replacer : PropertyReplacers.noop(); } else { return PropertyReplacers.noop(); } }
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.SPEC_DESCRIPTOR_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { PropertyReplacer replacer = deploymentUnit.getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_REPLACER); // Replacer might be null if the EE subsystem isn't installed (e.g. sar w/o ee) TODO clean up this relationship return replacer != null ? replacer : PropertyReplacers.noop(); } else { return PropertyReplacers.noop(); } }
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.SPEC_DESCRIPTOR_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { PropertyReplacer replacer = deploymentUnit.getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_REPLACER); // Replacer might be null if the EE subsystem isn't installed (e.g. sar w/o ee) TODO clean up this relationship return replacer != null ? replacer : PropertyReplacers.noop(); } else { return PropertyReplacers.noop(); } }
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.JBOSS_DESCRIPTOR_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { PropertyReplacer replacer = deploymentUnit .getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_REPLACER); return replacer != null ? replacer : PropertyReplacers.noop(); } else { return PropertyReplacers.noop(); } }
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.JBOSS_DESCRIPTOR_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { PropertyReplacer replacer = deploymentUnit.getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_REPLACER); // Replacer might be null if the EE subsystem isn't installed (e.g. sar w/o ee) TODO clean up this relationship return replacer != null ? replacer : PropertyReplacers.noop(); } else { return PropertyReplacers.noop(); } }
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.ANNOTATION_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { PropertyReplacer replacer = deploymentUnit.getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_REPLACER); // Replacer might be null if the EE subsystem isn't installed (e.g. sar w/o ee) TODO clean up this relationship return replacer != null ? replacer : PropertyReplacers.noop(); } else { return PropertyReplacers.noop(); } }
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.JBOSS_DESCRIPTOR_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { PropertyReplacer replacer = deploymentUnit.getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_REPLACER); // Replacer might be null if the EE subsystem isn't installed (e.g. sar w/o ee) TODO clean up this relationship return replacer != null ? replacer : PropertyReplacers.noop(); } else { return PropertyReplacers.noop(); } }
public JBossAppMetaData parse(final XMLStreamReader reader) throws XMLStreamException { return parse(reader, PropertyReplacers.noop()); }
public EarMetaData parse(final XMLStreamReader reader) throws XMLStreamException { return parse(reader, PropertyReplacers.noop()); }
public static ModuleMetaData parse(final XMLStreamReader reader) throws XMLStreamException { return parse(reader, PropertyReplacers.noop()); }
public JBossClientMetaData parse(final XMLStreamReader reader) throws XMLStreamException { return parse(reader, PropertyReplacers.noop()); }
public ApplicationClientMetaData parse(final XMLStreamReader reader) throws XMLStreamException { return parse(reader, PropertyReplacers.noop()); }
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.JBOSS_DESCRIPTOR_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { final PropertyResolver propertyResolver = deploymentUnit.getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_RESOLVER); return PropertyReplacers.resolvingReplacer(propertyResolver); } else { return PropertyReplacers.noop(); } }
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) { Boolean replacement = deploymentUnit.getAttachment(Attachments.SPEC_DESCRIPTOR_PROPERTY_REPLACEMENT); if (replacement == null || replacement) { final PropertyResolver propertyResolver = deploymentUnit.getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_RESOLVER); return PropertyReplacers.resolvingReplacer(propertyResolver); } else { return PropertyReplacers.noop(); } }
@SuppressWarnings({ "unchecked", "rawtypes" }) public final void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); final CompositeIndex index = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.COMPOSITE_ANNOTATION_INDEX); if (index == null || eeModuleDescription == null) { return; } for (final ClassAnnotationInformationFactory factory : factories) { final Map<String, ClassAnnotationInformation<?, ?>> data = factory.createAnnotationInformation(index, PropertyReplacers.noop()); for (Map.Entry<String, ClassAnnotationInformation<?, ?>> entry : data.entrySet()) { EEModuleClassDescription clazz = eeModuleDescription.addOrGetLocalClassDescription(entry.getKey()); clazz.addAnnotationInformation(entry.getValue()); } } }