Forge - Maven API 2.0.0.Alpha3

org.jboss.forge.maven.plugins
Class MavenPluginAdapter

java.lang.Object
  extended by org.apache.maven.model.ConfigurationContainer
      extended by org.apache.maven.model.Plugin
          extended by org.jboss.forge.maven.plugins.MavenPluginAdapter
All Implemented Interfaces:
Serializable, Cloneable, org.apache.maven.model.InputLocationTracker, MavenPlugin, PluginElement

public class MavenPluginAdapter
extends org.apache.maven.model.Plugin
implements MavenPlugin

A plugin adapter for Plugin and MavenPlugin

Author:
Paul Bakker
See Also:
Serialized Form

Constructor Summary
MavenPluginAdapter(MavenPlugin mavenPlugin)
           
MavenPluginAdapter(org.apache.maven.model.Plugin plugin)
           
 
Method Summary
 Configuration getConfig()
          Returns the Configuration associated with this plugin, if any
 Coordinate getCoordinate()
          Returns the Coordinate represented by this plugin
 List<Dependency> getDirectDependencies()
           
 boolean isExtensionsEnabled()
           
 List<Execution> listExecutions()
          Return the list of Execution associated with this plugin, if any
 
Methods inherited from class org.apache.maven.model.Plugin
addDependency, addExecution, clone, constructKey, equals, flushExecutionMap, getArtifactId, getDependencies, getExecutions, getExecutionsAsMap, getExtensions, getGoals, getGroupId, getId, getKey, getVersion, hashCode, isExtensions, removeDependency, removeExecution, setArtifactId, setDependencies, setExecutions, setExtensions, setExtensions, setGoals, setGroupId, setVersion, toString
 
Methods inherited from class org.apache.maven.model.ConfigurationContainer
getConfiguration, getInherited, getLocation, isInheritanceApplied, isInherited, setConfiguration, setInherited, setInherited, setLocation, unsetInheritanceApplied
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MavenPluginAdapter

public MavenPluginAdapter(MavenPlugin mavenPlugin)

MavenPluginAdapter

public MavenPluginAdapter(org.apache.maven.model.Plugin plugin)
Method Detail

listExecutions

public List<Execution> listExecutions()
Description copied from interface: MavenPlugin
Return the list of Execution associated with this plugin, if any

Specified by:
listExecutions in interface MavenPlugin

getConfig

public Configuration getConfig()
Description copied from interface: MavenPlugin
Returns the Configuration associated with this plugin, if any

Specified by:
getConfig in interface MavenPlugin

getCoordinate

public Coordinate getCoordinate()
Description copied from interface: MavenPlugin
Returns the Coordinate represented by this plugin

Specified by:
getCoordinate in interface MavenPlugin

isExtensionsEnabled

public boolean isExtensionsEnabled()
Specified by:
isExtensionsEnabled in interface MavenPlugin
Returns:
if this plugin extensions is enabled

getDirectDependencies

public List<Dependency> getDirectDependencies()
Specified by:
getDirectDependencies in interface MavenPlugin
Returns:
the dependencies for this plugin, if any

Forge - Maven API 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.