org.apache.maven.model.superpom
Class DefaultSuperPomProvider

java.lang.Object
  extended by org.apache.maven.model.superpom.DefaultSuperPomProvider
All Implemented Interfaces:
SuperPomProvider

@Component(role=SuperPomProvider.class)
public class DefaultSuperPomProvider
extends Object
implements SuperPomProvider

Provides the super POM that all models implicitly inherit from.

Author:
Benjamin Bentmann

Constructor Summary
DefaultSuperPomProvider()
           
 
Method Summary
 Model getSuperModel(String version)
          Gets the super POM for the specified model version.
 DefaultSuperPomProvider setModelProcessor(ModelProcessor modelProcessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSuperPomProvider

public DefaultSuperPomProvider()
Method Detail

setModelProcessor

public DefaultSuperPomProvider setModelProcessor(ModelProcessor modelProcessor)

getSuperModel

public Model getSuperModel(String version)
Description copied from interface: SuperPomProvider
Gets the super POM for the specified model version. The returned model is supposed to be read-only, i.e. if the caller intends to make updates to the model the return value must be cloned before updating to ensure the modifications don't affect future retrievals of the super POM.

Specified by:
getSuperModel in interface SuperPomProvider
Parameters:
version - The model version to retrieve the super POM for (e.g. "4.0.0"), must not be null.
Returns:
The super POM, never null.


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.