io.probedock.maven.plugin.glassfish.model.ConnectionFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glassfish-maven-plugin Show documentation
Show all versions of glassfish-maven-plugin Show documentation
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 connection factory configuration for its creation
*
* @author Laurent Prevost [email protected]
*/
public class ConnectionFactory {
/**
* JNDI name of the connection factory
*/
@Parameter(required = true)
private String jndiName;
/**
* Which type of connection factory
*/
@Parameter(required = true)
private Type type;
/**
* An optional description
*/
@Parameter
private String description;
/**
* A user to set as a property
*/
@Parameter
private String user;
/**
* A password to set as a property
*/
@Parameter
private String password;
/**
* An address list to set as a property
*/
@Parameter
private String addressList;
/**
* A set of additional properties to configure
*/
@Parameter
private Set properties;
public String getJndiName() {
return jndiName;
}
public Type getType() {
return type;
}
public String getAddressList() {
return addressList;
}
public String getPassword() {
return password;
}
public String getUser() {
return user;
}
public String getDescription() {
return description;
}
public Set getProperties() {
return properties;
}
@Override
public String toString() {
return
"addressList=" + addressList + ", " +
"description=" + description + ", " +
"jndi=" + jndiName + ", " +
"password=" + password + ", " +
"propeties=" + properties + ", " +
"type=" + type + ", " +
"user=" + user + ", ";
}
/**
* Connection factory types
*/
public enum Type {
CONNECTION_FACTORY("javax.jms.ConnectionFactory"),
QUEUE_CONNECTION_FACTORY("javax.jms.QueueConnectionFactory"),
TOPIC_CONNECTION_FACTORY("javax.jms.TopicConnectionFactory");
private String clazz;
/**
* Constructor
*
* @param clazz The class name of the connection factory
*/
private Type(String clazz) {
this.clazz = clazz;
}
public String getClazz() {
return clazz;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy