io.probedock.maven.plugin.glassfish.model.JmsResource 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;
/**
* A JMS resource configuration. See the ASADMIN help to have more
* information of the properties you can configure.
*
* @author Laurent Prevost [email protected]
*/
public class JmsResource {
@Parameter(required = true)
private String jndiName;
@Parameter(required = true)
private Type type;
@Parameter
private String name;
@Parameter
private String description;
@Parameter(defaultValue = "false")
private boolean createPhysicalDestination = false;
@Parameter
private Set properties;
public String getJndiName() {
return jndiName;
}
public Type getType() {
return type;
}
public String getDescription() {
return description;
}
public String getName() {
return name;
}
public Set getProperties() {
return properties;
}
public boolean isCreatePhysicalDestination() {
return createPhysicalDestination;
}
@Override
public String toString() {
return
"createPhysicalDestination=" + createPhysicalDestination + ", " +
"description=" + description + ", " +
"jndi=" + jndiName + ", " +
"name=" + name + ", " +
"propeties=" + properties + ", " +
"type=" + type + ", ";
}
/**
* Connection factory types
*/
public enum Type {
QUEUE("javax.jms.Queue"),
TOPIC("javax.jms.Topic");
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