org.n0pe.mojo.asadmin
Class AbstractAsadminMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.n0pe.mojo.asadmin.AbstractAsadminMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, IAsAdminConfig
- Direct Known Subclasses:
- CreateAuthRealmMojo, CreateJdbcConnectionPoolMojo, CreateJdbcConnectionResourceMojo, CreateMessageSecurityProviderMojo, DeleteJdbcConnectionPoolMojo, DeleteJdbcResourceMojo, DeleteMessageSecurityProviderMojo, DeployMojo, GetMojo, PingConnectionPoolMojo, RedeployMojo, SetMojo, SetPortsMojo, StartDatabaseMojo, StartDomainMojo, StopDatabaseMojo, StopDomainMojo, UndeployMojo
public abstract class AbstractAsadminMojo
- extends org.apache.maven.plugin.AbstractMojo
- implements IAsAdminConfig
Base class of all asadmin mojos.
Provides common parameters and basic check configuration, implements asadmin configuration provider.
- Author:
- Paul Merlin
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
domain
protected String domain
appArchive
protected String appArchive
appName
protected String appName
contextRoot
protected String contextRoot
- Overrided context root for WAR archives, default to project.build.finalName.
mavenProject
protected org.apache.maven.project.MavenProject mavenProject
AbstractAsadminMojo
public AbstractAsadminMojo()
execute
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Specified by:
execute in interface org.apache.maven.plugin.Mojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
getGlassfishHome
public final String getGlassfishHome()
- Specified by:
getGlassfishHome in interface IAsAdminConfig
getUser
public final String getUser()
- Specified by:
getUser in interface IAsAdminConfig
getPasswordFile
public final String getPasswordFile()
- Specified by:
getPasswordFile in interface IAsAdminConfig
getHost
public String getHost()
- Specified by:
getHost in interface IAsAdminConfig
getPort
public String getPort()
- Specified by:
getPort in interface IAsAdminConfig
isSecure
public boolean isSecure()
- Specified by:
isSecure in interface IAsAdminConfig
getAsCommandList
protected abstract AsAdminCmdList getAsCommandList()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Build and return a list of IAsCommand to be executed.
AbstractAsadminMojo subclasses need to implement this method.
- Returns:
- A list of IAsCommand to be executed
- Throws:
org.apache.maven.plugin.MojoExecutionException - MojoExecutionException
org.apache.maven.plugin.MojoFailureException - MojoFailureException
Copyright © 2010. All Rights Reserved.