org.apache.maven
Class AbstractMavenComponent

java.lang.Object
  extended byorg.apache.maven.AbstractMavenComponent
Direct Known Subclasses:
DependencyVerifier, LocalSettingsVerifier, MavenSession, PluginManager

public abstract class AbstractMavenComponent
extends java.lang.Object

Base class from which all components in maven are derived.

Version:
$Id: AbstractMavenComponent.java 517014 2007-03-11 21:15:50Z ltheussl $
Author:
Jason van Zyl

Constructor Summary
AbstractMavenComponent()
          Default Constructor.
AbstractMavenComponent(Project aProject)
          Create a component that uses a project
 
Method Summary
 java.lang.String getMessage(java.lang.String messageId)
          Retrieve a user message.
 java.lang.String getMessage(java.lang.String messageId, java.lang.Object variable)
          Retrieve a user message.
 Project getProject()
           
 void setProject(Project aProject)
          set the project property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMavenComponent

public AbstractMavenComponent()
Default Constructor.


AbstractMavenComponent

public AbstractMavenComponent(Project aProject)
Create a component that uses a project

Parameters:
aProject - a Maven project
Method Detail

setProject

public void setProject(Project aProject)
set the project property

Parameters:
aProject - a Maven project

getProject

public Project getProject()
Returns:
the project property

getMessage

public java.lang.String getMessage(java.lang.String messageId)
Retrieve a user message.

Parameters:
messageId - Id of message type to use.
Returns:
Message for the user's locale.
See Also:
MavenUtils.getMessage(java.lang.String)

getMessage

public java.lang.String getMessage(java.lang.String messageId,
                                   java.lang.Object variable)
Retrieve a user message.

Parameters:
messageId - Id of message type to use.
variable - Value to substitute for ${1} in the given message.
Returns:
Message for the user's locale.
See Also:
MavenUtils.getMessage(java.lang.String)


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.