org.jboss.as.ee.structure.Attachments Maven / Gradle / Ivy
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.jboss.as.ee.structure;
import org.jboss.as.ee.metadata.EJBClientDescriptorMetaData;
import org.jboss.as.server.deployment.AttachmentKey;
import org.jboss.metadata.ear.spec.EarMetaData;
import org.jboss.metadata.ear.spec.ModuleMetaData;
import org.jboss.vfs.VirtualFile;
/**
* EE related attachments.
*
* @author John Bailey
* @author Stuart Douglas
*/
public final class Attachments {
public static final AttachmentKey EAR_METADATA = AttachmentKey.create(EarMetaData.class);
/**
* The distinct-name that is configured for the EE deployment, in the deployment descriptor
*/
public static final AttachmentKey DISTINCT_NAME = AttachmentKey.create(String.class);
public static final AttachmentKey MODULE_META_DATA = AttachmentKey.create(ModuleMetaData.class);
public static final AttachmentKey EJB_CLIENT_METADATA = AttachmentKey.create(EJBClientDescriptorMetaData.class);
/**
* The alternate deployment descriptor location
*/
public static final AttachmentKey ALTERNATE_CLIENT_DEPLOYMENT_DESCRIPTOR = AttachmentKey.create(VirtualFile.class);
public static final AttachmentKey ALTERNATE_WEB_DEPLOYMENT_DESCRIPTOR = AttachmentKey.create(VirtualFile.class);
public static final AttachmentKey ALTERNATE_EJB_DEPLOYMENT_DESCRIPTOR = AttachmentKey.create(VirtualFile.class);
public static final AttachmentKey ALTERNATE_CONNECTOR_DEPLOYMENT_DESCRIPTOR = AttachmentKey.create(VirtualFile.class);
/**
* A Marker that identifies the type of deployment
*/
public static final AttachmentKey DEPLOYMENT_TYPE = AttachmentKey.create(DeploymentType.class);
/**
* If this is set to true property replacement will be enabled for spec descriptors
*/
public static final AttachmentKey SPEC_DESCRIPTOR_PROPERTY_REPLACEMENT = AttachmentKey.create(Boolean.class);
/**
* If this is set to true property replacement will be enabled for jboss descriptors
*/
public static final AttachmentKey JBOSS_DESCRIPTOR_PROPERTY_REPLACEMENT = AttachmentKey.create(Boolean.class);
/**
* If this is set to true property replacement will be enabled for Jakarta Enterprise Beans annotations
*/
public static final AttachmentKey ANNOTATION_PROPERTY_REPLACEMENT = AttachmentKey.create(Boolean.class);
private Attachments() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy