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

org.codehaus.mojo.aspectj.Module Maven / Gradle / Ivy

Go to download

Handles AspectJ usage within Maven. Functionality provided is: weaving of aspects (or existing aspects from libraries) with the test and/or main classes, weaving of pre-existing jars and ajdoc reporting.

There is a newer version: 1.15.0
Show newest version
package org.codehaus.mojo.aspectj;

/**
 * The MIT License
 *
 * Copyright 2005-2006 The Codehaus.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 * of the Software, and to permit persons to whom the Software is furnished to do
 * so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

/**
 * Module to be referenced through AJC-mojo
 * 
 * @author Thor Age Eldby
 */
public class Module
{

    /** Artifact's group id */
    private String groupId;

    /** Artifact's id */
    private String artifactId;

    /** Artifact's classifier */
    private String classifier;

    /** Artifact's type */
    private String type;

    /**
     * @return id of artifact
     */
    public String getArtifactId()
    {
        return artifactId;
    }

    /**
     * @param artifactId id of artifact
     */
    public void setArtifactId( String artifactId )
    {
        this.artifactId = artifactId;
    }

    /**
     * @return id of artifact's group
     */
    public String getGroupId()
    {
        return groupId;
    }

    /**
     * @param groupId id of artifact's group
     */
    public void setGroupId( String groupId )
    {
        this.groupId = groupId;
    }

    public String toString()
    {
        String ts = getGroupId() + ":" + getArtifactId();
        if ( getType() != null )
        {
            ts += ":" + getType();
        }
        // TODO where to place the classifier?
        return ts;
    }

    /**
     * @return classifier of artifact
     */
    public String getClassifier()
    {
        return classifier;
    }

    /**
     * @param classifier classifier of artifact
     */
    public void setClassifier( String classifier )
    {
        this.classifier = classifier;
    }

    /**
     * @return type of artifact
     */
    public String getType()
    {
        return type;
    }

    /**
     * @param type type fo artifact
     */
    public void setType( String type )
    {
        this.type = type;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy