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

io.probedock.maven.plugin.glassfish.model.ConnectorResource Maven / Gradle / Ivy

Go to download

Glassfish Asadmin maven plugin with full arguments supported through XML pom configuration.

The newest version!
package io.probedock.maven.plugin.glassfish.model;

import java.util.Set;
import org.apache.maven.plugins.annotations.Parameter;

/**
 * Represents a connector resource and configuration required for its creation.
 * 
 * @author Valentin Delaye [email protected]
 */
public class ConnectorResource {

	/**
	 * JNDI name of the connector resource
	 */
	@Parameter(required = true)
	private String jndiName;
	
	/**
	 * Name of the referenced connector connection pool name
	 */
	@Parameter(required = true)
	private String poolName;
	
	@Parameter
	private Set properties;

	public String getJndiName() {
		return jndiName;
	}

	public void setJndiName(String jndiName) {
		this.jndiName = jndiName;
	}

	public String getPoolName() {
		return poolName;
	}

	public void setPoolName(String poolName) {
		this.poolName = poolName;
	}

	public Set getProperties() {
		return properties;
	}

	public void setProperties(Set properties) {
		this.properties = properties;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		String props = null;
		if(properties != null) {
			for (Property p : properties) {
				builder.append(p).append(", ");
			}
			props = builder.toString().replaceAll(", $", "");
		}
		return 
			"jndiName=" + jndiName + ", " +
			"poolName=" + poolName  + ", " +
			"properties=" + props;
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy