Class ModelBuilder
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Binding
groovy.util.FactoryBuilderSupport
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
FieldsFields inherited from class groovy.util.FactoryBuilderSupport
attributeDelegates, autoRegistrationComplete, autoRegistrationRunning, CHILD_BUILDER, CURRENT_BUILDER, CURRENT_FACTORY, CURRENT_NAME, CURRENT_NODE, explicitMethods, explicitProperties, methodMissingDelegate, OWNER, PARENT_BUILDER, PARENT_CONTEXT, PARENT_FACTORY, PARENT_NAME, PARENT_NODE, postInstantiateDelegates, postNodeCompletionDelegates, preInstantiateDelegates, propertyMissingDelegate, registrationGroup, registrationGroupName, SCRIPT_CLASS_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindInContext
(String key) org.apache.maven.model.ReportSet
getTasks()
void
void
registerBeanFactory
(String name, Class type) void
void
registerFactory
(String name, String groupName, groovy.util.Factory factory) protected void
setClosureDelegate
(groovy.lang.Closure c, Object o) void
setReportSet
(org.apache.maven.model.ReportSet reportSet) void
setVariable
(String name, Object value) Methods inherited from class groovy.util.FactoryBuilderSupport
addAttributeDelegate, addDisposalClosure, addPostInstantiateDelegate, addPostNodeCompletionDelegate, addPreInstantiateDelegate, autoRegisterNodes, build, build, build, checkExplicitMethod, checkValueIsNull, checkValueIsType, checkValueIsTypeNotString, createNode, dispatchNodeCall, dispathNodeCall, dispose, getAttributeDelegates, getChildBuilder, getContext, getContextAttribute, getContexts, getContinuationData, getCurrent, getCurrentBuilder, getCurrentFactory, getCurrentName, getDisposalClosures, getExplicitMethods, getExplicitProperties, getFactories, getLocalExplicitMethods, getLocalExplicitProperties, getLocalFactories, getMethodMissingDelegate, getName, getNameMappingClosure, getParentContext, getParentFactory, getParentName, getParentNode, getPostInstantiateDelegates, getPostNodeCompletionDelegates, getPreInstantiateDelegates, getProperty, getPropertyMissingDelegate, 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, setMethodMissingDelegate, setNameMappingClosure, setNodeAttributes, setParent, setProperty, setPropertyMissingDelegate, setProxyBuilder, withBuilder, withBuilder, withBuilder
Methods inherited from class groovy.lang.Binding
hasVariable
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
-
Field Details
-
log
@Requirement protected org.codehaus.plexus.logging.Logger log
-
-
Constructor Details
-
ModelBuilder
public ModelBuilder()
-
-
Method Details
-
initialize
public void initialize() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException- Specified by:
initialize
in interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
- Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
-
setClosureDelegate
- Overrides:
setClosureDelegate
in classgroovy.util.FactoryBuilderSupport
-
setVariable
- Overrides:
setVariable
in classgroovy.util.FactoryBuilderSupport
-
getExecuteManager
-
getTasks
-
registerFactories
public void registerFactories() -
registerBeanFactory
- Overrides:
registerBeanFactory
in classgroovy.util.FactoryBuilderSupport
-
registerFactory
- Overrides:
registerFactory
in classgroovy.util.FactoryBuilderSupport
-
findInContext
-
getReportSet
public org.apache.maven.model.ReportSet getReportSet() -
setReportSet
public void setReportSet(org.apache.maven.model.ReportSet reportSet)
-