de.smartics.maven.plugin.buildmetadata.data
Class MetaDataProviderBuilder

Package class diagram package MetaDataProviderBuilder
java.lang.Object
  extended by de.smartics.maven.plugin.buildmetadata.data.MetaDataProviderBuilder

public final class MetaDataProviderBuilder
     
     
extends Object

Configuration instance to create instances of MetaDataProvider.

Author:
Robert Reiner

Constructor Summary
MetaDataProviderBuilder(MavenProject project, MavenSession session, RuntimeInformation runtime, ScmInfo scmInfo)
          Default constructor.
 
Method Summary
 MetaDataProvider build(Provider config)
          Creates a configured instance of the MetaDataProvider interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataProviderBuilder

public MetaDataProviderBuilder(MavenProject project,
                               MavenSession session,
                               RuntimeInformation runtime,
                               ScmInfo scmInfo)
Default constructor.

Parameters:
project - the Maven project.
session - the Maven session instance.
runtime - the runtime information of the Maven instance being executed for the build.
scmInfo - the information for the SCM provided to the build plugin.
Method Detail

build

public MetaDataProvider build(Provider config)
                       throws MojoExecutionException
Creates a configured instance of the MetaDataProvider interface.

Parameters:
config - the configuration for the build.
Returns:
the created instance.
Throws:
MojoExecutionException - if the instance cannot be created.


Copyright © 2006-2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.