org.codehaus.mojo.ruby
Class DefaultRubyMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.ruby.DefaultRubyMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, RubyMojo, org.codehaus.plexus.component.MapOrientedComponent

public class DefaultRubyMojo
extends org.apache.maven.plugin.AbstractMojo
implements RubyMojo

This is the default implementation for the RubyMojo, which uses the RubyInvoker.

Author:
Eric Redmond

Field Summary
 
Fields inherited from interface org.codehaus.mojo.ruby.RubyMojo
ROLE
 
Constructor Summary
DefaultRubyMojo(org.codehaus.plexus.component.jruby.JRubyInvoker invoker)
           
 
Method Summary
 void addComponentRequirement(org.codehaus.plexus.component.repository.ComponentRequirement componentrequirement, java.lang.Object obj)
           
 void execute()
          Implementation of Mojo.execute.
 java.lang.Object getReturned()
           
 void set(java.lang.String key, java.lang.Object value)
          Sets any string key with an object value.
 void setComponentConfiguration(java.util.Map map)
           
 
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.apache.maven.plugin.Mojo
getLog, setLog
 
Methods inherited from interface org.apache.maven.plugin.ContextEnabled
getPluginContext, setPluginContext
 

Constructor Detail

DefaultRubyMojo

public DefaultRubyMojo(org.codehaus.plexus.component.jruby.JRubyInvoker invoker)
Method Detail

set

public void set(java.lang.String key,
                java.lang.Object value)
Sets any string key with an object value.

Specified by:
set in interface RubyMojo
Parameters:
key - identifier for this object.
value - some value object.

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Implementation of Mojo.execute. Invokes the underlying Ruby script.

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Throws:
org.apache.maven.plugin.MojoExecutionException - satisfies Mojo contact, not used.
org.apache.maven.plugin.MojoFailureException - satisfies Mojo contact, not used.

getReturned

public java.lang.Object getReturned()

addComponentRequirement

public void addComponentRequirement(org.codehaus.plexus.component.repository.ComponentRequirement componentrequirement,
                                    java.lang.Object obj)
                             throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
Specified by:
addComponentRequirement in interface org.codehaus.plexus.component.MapOrientedComponent
Throws:
org.codehaus.plexus.component.configurator.ComponentConfigurationException

setComponentConfiguration

public void setComponentConfiguration(java.util.Map map)
                               throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
Specified by:
setComponentConfiguration in interface org.codehaus.plexus.component.MapOrientedComponent
Throws:
org.codehaus.plexus.component.configurator.ComponentConfigurationException


Copyright © 2005-2010. All Rights Reserved.