org.sonatype.maven.polyglot.groovy.builder
Class ModelBuilder

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.lang.Binding
          extended by groovy.util.FactoryBuilderSupport
              extended by org.sonatype.maven.polyglot.groovy.builder.ModelBuilder
All Implemented Interfaces:
groovy.lang.GroovyObject, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

@Component(role=ModelBuilder.class)
public class ModelBuilder
extends groovy.util.FactoryBuilderSupport
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

Builds Maven Model instances.

Since:
0.7
Author:
Jason Dillon

Field Summary
protected  org.codehaus.plexus.logging.Logger log
           
 
Fields inherited from class groovy.util.FactoryBuilderSupport
attributeDelegates, autoRegistrationComplete, autoRegistrationRunning, CHILD_BUILDER, CURRENT_BUILDER, CURRENT_FACTORY, CURRENT_NAME, CURRENT_NODE, explicitMethods, explicitProperties, OWNER, PARENT_BUILDER, PARENT_CONTEXT, PARENT_FACTORY, PARENT_NAME, PARENT_NODE, postInstantiateDelegates, postNodeCompletionDelegates, preInstantiateDelegates, registrationGroup, registrationGroupName, SCRIPT_CLASS_NAME
 
Constructor Summary
ModelBuilder()
           
 
Method Summary
 java.lang.Object findInContext(java.lang.String key)
           
 ExecuteManager getExecuteManager()
           
 org.apache.maven.model.ReportSet getReportSet()
           
 java.util.List<ExecuteTask> getTasks()
           
 void initialize()
           
 void registerBeanFactory(java.lang.String name, java.lang.Class type)
           
 void registerFactories()
           
 void registerFactory(java.lang.String name, java.lang.String groupName, groovy.util.Factory factory)
           
protected  void setClosureDelegate(groovy.lang.Closure c, java.lang.Object o)
           
 void setReportSet(org.apache.maven.model.ReportSet reportSet)
           
 void setVariable(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class groovy.util.FactoryBuilderSupport
addAttributeDelegate, addDisposalClosure, addPostInstantiateDelegate, addPostNodeCompletionDelegate, addPreInstantiateDelegate, autoRegisterNodes, build, build, build, checkExplicitMethod, checkValueIsNull, checkValueIsType, checkValueIsTypeNotString, createNode, dispathNodeCall, dispose, getAttributeDelegates, getChildBuilder, getContext, getContextAttribute, getContexts, getContinuationData, getCurrent, getCurrentBuilder, getCurrentFactory, getCurrentName, getExplicitMethods, getExplicitProperties, getFactories, getLocalExplicitMethods, getLocalExplicitProperties, getLocalFactories, getName, getNameMappingClosure, getParentContext, getParentFactory, getParentName, getParentNode, getPostInstantiateDelegates, getPostNodeCompletionDelegates, getPreInstantiateDelegates, getProperty, getProxyBuilder, getRegistrationGroupItems, getRegistrationGroups, getVariable, getVariables, handleNodeAttributes, invokeMethod, invokeMethod, newContext, nodeCompleted, popContext, postInstantiate, postNodeCompletion, preInstantiate, registerBeanFactory, registerExplicitMethod, registerExplicitMethod, registerExplicitProperty, registerExplicitProperty, registerFactory, removeAttributeDelegate, removePostInstantiateDelegate, removePostNodeCompletionDelegate, removePreInstantiateDelegate, reset, resolveExplicitMethod, resolveExplicitProperty, resolveFactory, restoreFromContinuationData, setNameMappingClosure, setNodeAttributes, setParent, setProperty, setProxyBuilder, withBuilder, withBuilder, withBuilder
 
Methods inherited from class groovy.lang.Binding
hasVariable
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

@Requirement
protected org.codehaus.plexus.logging.Logger log
Constructor Detail

ModelBuilder

public ModelBuilder()
Method Detail

initialize

public void initialize()
                throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

setClosureDelegate

protected void setClosureDelegate(groovy.lang.Closure c,
                                  java.lang.Object o)
Overrides:
setClosureDelegate in class groovy.util.FactoryBuilderSupport

setVariable

public void setVariable(java.lang.String name,
                        java.lang.Object value)
Overrides:
setVariable in class groovy.util.FactoryBuilderSupport

getExecuteManager

public ExecuteManager getExecuteManager()

getTasks

public java.util.List<ExecuteTask> getTasks()

registerFactories

public void registerFactories()

registerBeanFactory

public void registerBeanFactory(java.lang.String name,
                                java.lang.Class type)
Overrides:
registerBeanFactory in class groovy.util.FactoryBuilderSupport

registerFactory

public void registerFactory(java.lang.String name,
                            java.lang.String groupName,
                            groovy.util.Factory factory)
Overrides:
registerFactory in class groovy.util.FactoryBuilderSupport

findInContext

public java.lang.Object findInContext(java.lang.String key)

getReportSet

public org.apache.maven.model.ReportSet getReportSet()

setReportSet

public void setReportSet(org.apache.maven.model.ReportSet reportSet)