![JAR search and dependency download from the Maven repository](/logo.png)
io.tesla.lifecycle.profiler.ProjectProfile Maven / Gradle / Ivy
The newest version!
/**
* Copyright (c) 2012 to original author or authors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package io.tesla.lifecycle.profiler;
import java.util.ArrayList;
import java.util.List;
import org.apache.maven.project.MavenProject;
public class ProjectProfile extends AbstractTimerProfile {
private MavenProject project;
private List phaseProfiles;
public ProjectProfile(MavenProject project) {
super();
this.project = project;
this.phaseProfiles = new ArrayList();
}
public void addPhaseProfile(PhaseProfile phaseProfile) {
phaseProfiles.add(phaseProfile);
}
public String getProjectName() {
return project.getGroupId() + ":" + project.getArtifactId() + ":" + project.getVersion();
}
public List getPhaseProfile() {
return phaseProfiles;
}
@Override
public String getName() {
return getProjectName();
}
@Override
public List extends Profile> getChildren() {
return getPhaseProfile();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy