Adding constructor to the default build context manager, to allow simpler unit testing with it.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@500078 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2007-01-26 01:09:36 +00:00
parent 08825262be
commit 3b44ad3ac3
1 changed files with 11 additions and 1 deletions

View File

@ -18,10 +18,20 @@ public class DefaultBuildContextManager
{
public static final String ROLE_HINT = "default";
protected static final String BUILD_CONTEXT_MAP_KEY = "org.apache.maven.context:DefaultBuildContextManager:contextMap";
protected static final String BUILD_CONTEXT_MAP_KEY = ROLE + ":" + ROLE_HINT + ":contextMap";
private Context context;
public DefaultBuildContextManager()
{
// used for plexus initialization
}
public DefaultBuildContextManager( Context context )
{
this.context = context;
}
/**
* Create a new instance of DefaultBuildContext, and return it. Each method call creates a brand
* new instance.