org.glassfish.maven
Class AbstractServerMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.glassfish.maven.AbstractServerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractDeployMojo, AdminMojo, StartMojo, StopMojo

public abstract class AbstractServerMojo
extends org.apache.maven.plugin.AbstractMojo

Author:
bhavanishankar@dev.java.net

Field Summary
protected  java.lang.Boolean autoDelete
           
protected  java.util.List<java.lang.String> bootstrapProperties
           
protected  java.io.File bootstrapPropertiesFile
           
protected static java.util.HashMap<java.lang.String,java.net.URLClassLoader> classLoaders
           
static java.lang.String CONFIG_FILE_URI_PROP_NAME
           
protected  java.lang.String configFile
           
protected  java.lang.Boolean configFileReadOnly
           
protected  java.lang.String containerType
           
protected  org.apache.maven.artifact.factory.ArtifactFactory factory
          Used to construct artifacts for deletion/resolution...
protected  java.util.List<java.lang.String> glassfishProperties
           
protected  java.io.File glassfishPropertiesFile
           
static java.lang.String INSTALL_ROOT_PROP_NAME
           
protected  java.lang.String installRoot
           
static java.lang.String INSTANCE_ROOT_PROP_NAME
           
protected  java.lang.String instanceRoot
           
protected  org.apache.maven.artifact.repository.ArtifactRepository localRepository
           
static java.lang.String PLATFORM_KEY
           
protected  int port
           
protected  java.util.Map<java.lang.String,java.lang.String> ports
           
protected  org.apache.maven.project.MavenProject project
          The maven project.
protected  org.apache.maven.project.MavenProjectBuilder projectBuilder
           
protected  java.util.List remoteRepositories
          The remote repositories where artifacts are located
protected  org.apache.maven.artifact.resolver.ArtifactResolver resolver
           
protected  java.lang.String serverID
           
protected  java.util.List<java.lang.String> systemProperties
           
protected  java.io.File systemPropertiesFile
           
static java.lang.String thisArtifactId
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractServerMojo()
           
 
Method Summary
protected  void cleanupClassLoader(java.lang.String serverId)
           
abstract  void execute()
           
protected  java.util.Properties getBootStrapProperties()
           
protected  java.net.URLClassLoader getClassLoader()
           
protected  java.util.Properties getGlassFishProperties()
           
 
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
 

Field Detail

PLATFORM_KEY

public static final java.lang.String PLATFORM_KEY
See Also:
Constant Field Values

INSTANCE_ROOT_PROP_NAME

public static final java.lang.String INSTANCE_ROOT_PROP_NAME
See Also:
Constant Field Values

INSTALL_ROOT_PROP_NAME

public static final java.lang.String INSTALL_ROOT_PROP_NAME
See Also:
Constant Field Values

CONFIG_FILE_URI_PROP_NAME

public static final java.lang.String CONFIG_FILE_URI_PROP_NAME
See Also:
Constant Field Values

thisArtifactId

public static java.lang.String thisArtifactId

remoteRepositories

protected java.util.List remoteRepositories
The remote repositories where artifacts are located


serverID

protected java.lang.String serverID

port

protected int port

installRoot

protected java.lang.String installRoot

instanceRoot

protected java.lang.String instanceRoot

configFile

protected java.lang.String configFile

configFileReadOnly

protected java.lang.Boolean configFileReadOnly

ports

protected java.util.Map<java.lang.String,java.lang.String> ports

bootstrapProperties

protected java.util.List<java.lang.String> bootstrapProperties

bootstrapPropertiesFile

protected java.io.File bootstrapPropertiesFile

glassfishProperties

protected java.util.List<java.lang.String> glassfishProperties

glassfishPropertiesFile

protected java.io.File glassfishPropertiesFile

systemProperties

protected java.util.List<java.lang.String> systemProperties

systemPropertiesFile

protected java.io.File systemPropertiesFile

autoDelete

protected java.lang.Boolean autoDelete

project

protected org.apache.maven.project.MavenProject project
The maven project.


projectBuilder

protected org.apache.maven.project.MavenProjectBuilder projectBuilder

localRepository

protected org.apache.maven.artifact.repository.ArtifactRepository localRepository

resolver

protected org.apache.maven.artifact.resolver.ArtifactResolver resolver

factory

protected org.apache.maven.artifact.factory.ArtifactFactory factory
Used to construct artifacts for deletion/resolution...


containerType

protected java.lang.String containerType

classLoaders

protected static java.util.HashMap<java.lang.String,java.net.URLClassLoader> classLoaders
Constructor Detail

AbstractServerMojo

public AbstractServerMojo()
Method Detail

execute

public abstract void execute()
                      throws org.apache.maven.plugin.MojoExecutionException,
                             org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

getClassLoader

protected java.net.URLClassLoader getClassLoader()
                                          throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

cleanupClassLoader

protected void cleanupClassLoader(java.lang.String serverId)

getGlassFishProperties

protected java.util.Properties getGlassFishProperties()

getBootStrapProperties

protected java.util.Properties getBootStrapProperties()


Copyright © 2011. All Rights Reserved.