All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.as.xts.XTSDeploymentMarker Maven / Gradle / Ivy

There is a newer version: 33.0.2.Final
Show newest version
/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.jboss.as.xts;

import org.jboss.as.server.deployment.AttachmentKey;
import org.jboss.as.server.deployment.DeploymentUnit;

/**
 * @author [email protected], 2012-02-13
 */
public class XTSDeploymentMarker {

    private static final AttachmentKey MARKER = AttachmentKey.create(XTSDeploymentMarker.class);

    private XTSDeploymentMarker() {
    }

    public static void mark(DeploymentUnit unit) {
        unit.putAttachment(MARKER, new XTSDeploymentMarker());
    }

    public static boolean isXTSAnnotationDeployment(DeploymentUnit unit) {
        return unit.hasAttachment(MARKER);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy