org.codehaus.cargo.maven3.configuration.Daemon Maven / Gradle / Ivy
/*
* ========================================================================
*
* Codehaus Cargo, copyright 2004-2011 Vincent Massol, 2012-2022 Ali Tokmen.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* ========================================================================
*/
package org.codehaus.cargo.maven3.configuration;
import java.util.List;
import java.util.Map;
import org.apache.maven.plugins.annotations.Parameter;
/**
* Holds configuration data for the <daemon>
tag used to configure the plugin in
* the pom.xml
file.
*/
public class Daemon
{
/**
* Daemon properties.
*/
@Parameter
private Map properties;
/**
* Additional classpath entries.
*/
@Parameter
private List classpaths;
/**
* Constructs a daemon configuration with default settings.
*/
public Daemon()
{
}
/**
* Constructs a daemon configuration with properties.
*
* @param properties The properties
*/
public Daemon(Map properties)
{
this.properties = properties;
}
/**
* @return The daemon properties.
*/
public Map getProperties()
{
return properties;
}
/**
* @param properties The daemon properties to set.
*/
public void setProperties(Map properties)
{
this.properties = properties;
}
/**
* @return The additional classpath entries to set for a container.
*/
public List getClasspaths()
{
return classpaths;
}
/**
* @param classpaths The additional classpath entries for a container.
*/
public void setClasspaths(List classpaths)
{
this.classpaths = classpaths;
}
/**
* @param name The daemon property key
* @return the value of a daemon property
*/
public String getProperty(String name)
{
if (properties == null)
{
return null;
}
return properties.get(name);
}
}