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

io.probedock.maven.plugin.glassfish.macro.ResourceAdaptersMacro Maven / Gradle / Ivy

package io.probedock.maven.plugin.glassfish.macro;

import io.probedock.maven.plugin.glassfish.model.Configuration;
import io.probedock.maven.plugin.glassfish.model.ResourceAdapter;


/**
 * The Resource Adapter macro manage the deployment of the different resource adapter for a domain.
 *  
 * @author Valentin Delaye [email protected]
 */
public class ResourceAdaptersMacro extends AbstractMacro {

	public ResourceAdaptersMacro(Configuration configuration) {
		super(configuration);
		
		// Configure the JMS Hosts if there are some
		if (configuration.getDomain().hasResourceAdapters()) {
			for (ResourceAdapter resourceAdapter : configuration.getDomain().getResourceAdapters()) {
				// Create and register the command
				registerCommand(new MacroMacroCommand(new DeployResourceAdapterMacro(configuration, resourceAdapter), "Deploying resource adapter."));
			}
		}
		
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy