org.ow2.easybeans.mavenplugin
Class AbstractEasyBeansUnboundMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.ow2.easybeans.mavenplugin.AbstractEasyBeansMojo
          extended by org.ow2.easybeans.mavenplugin.AbstractEasyBeansUnboundMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.ow2.util.maven.plugin.deployment.api.IDeploymentMojo, org.ow2.util.maven.plugin.deployment.api.IDeploymentUnboundMojo, org.ow2.util.maven.plugin.deployment.api.IMojo
Direct Known Subclasses:
EasyBeansRunMojo

public abstract class AbstractEasyBeansUnboundMojo
extends AbstractEasyBeansMojo
implements org.ow2.util.maven.plugin.deployment.api.IDeploymentUnboundMojo

Class representing goal which must not be bound to the Maven project lifecycle. This mojo provide a simple deployment of the current project resource.

Author:
Vincent Michaud

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractEasyBeansUnboundMojo()
           
 
Method Summary
 org.ow2.util.maven.plugin.deployment.api.IDeploymentCore defineMojoCore()
          Define the core of the mojo.
 org.ow2.util.maven.plugin.deployment.api.IPluginServer getLaunchedServer(org.ow2.util.maven.plugin.deployment.api.IDeploymentCore core)
          Create server instance with specified XML configuration file.
 long getScanInterval()
          Get the interval in milliseconds to scan EJBs for change.
 boolean isAutoDeploymentEnabled()
          Determine If hot deployment is automatic or manual.
 boolean isExploredEAR()
          Determine if EAR are explored during the checking of deployable.
 
Methods inherited from class org.ow2.easybeans.mavenplugin.AbstractEasyBeansMojo
contextualize, execute, getAdditionalDeployables, getArtifactFactory, getArtifactResolver, getCore, getLocalRepository, getMetadataSource, getPlexusPluginContext, getPluginArtifactId, getPluginGroupId, getPluginVersion, getProject, getProjectBuilder, getReactorProjects
 
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
 
Methods inherited from interface org.ow2.util.maven.plugin.deployment.api.IDeploymentMojo
defineConfiguration, defineDeploymentBehavior, getAdditionalDeployables
 
Methods inherited from interface org.ow2.util.maven.plugin.deployment.api.IMojo
getArtifactFactory, getArtifactResolver, getLocalRepository, getLog, getMetadataSource, getPlexusPluginContext, getPluginArtifactId, getPluginGroupId, getPluginVersion, getProject, getProjectBuilder, getReactorProjects
 

Constructor Detail

AbstractEasyBeansUnboundMojo

public AbstractEasyBeansUnboundMojo()
Method Detail

getScanInterval

public long getScanInterval()
Get the interval in milliseconds to scan EJBs for change.

Specified by:
getScanInterval in interface org.ow2.util.maven.plugin.deployment.api.IDeploymentUnboundMojo
Returns:
The scan interval

isAutoDeploymentEnabled

public boolean isAutoDeploymentEnabled()
Determine If hot deployment is automatic or manual.

Specified by:
isAutoDeploymentEnabled in interface org.ow2.util.maven.plugin.deployment.api.IDeploymentUnboundMojo
Returns:
True if automatic deployment is enabled, false otherwise

isExploredEAR

public boolean isExploredEAR()
Determine if EAR are explored during the checking of deployable.

Specified by:
isExploredEAR in interface org.ow2.util.maven.plugin.deployment.api.IDeploymentUnboundMojo
Returns:
True if EAR are explored

getLaunchedServer

public org.ow2.util.maven.plugin.deployment.api.IPluginServer getLaunchedServer(org.ow2.util.maven.plugin.deployment.api.IDeploymentCore core)
                                                                         throws org.apache.maven.plugin.MojoExecutionException
Create server instance with specified XML configuration file.

Specified by:
getLaunchedServer in interface org.ow2.util.maven.plugin.deployment.api.IDeploymentMojo
Parameters:
core - The core of the mojo
Returns:
Plugin server interface
Throws:
org.apache.maven.plugin.MojoExecutionException - If configuration file is not found

defineMojoCore

public org.ow2.util.maven.plugin.deployment.api.IDeploymentCore defineMojoCore()
                                                                        throws org.apache.maven.plugin.MojoExecutionException
Define the core of the mojo.

Specified by:
defineMojoCore in class AbstractEasyBeansMojo
Returns:
The core of the mojo
Throws:
org.apache.maven.plugin.MojoExecutionException - Execution error


Copyright © 2006-2011 OW2 Consortium. All Rights Reserved.