o in the contextualize method where we are getting a reference to the container but we only need the basis PlexusContainer. The only place we need the artifact enabled container is in the addPlugin method. Otherwise, in standard PlexusTestCases we will get a ClassCastException. You do not need to use an ArtifactEnabledTestCase unless you actually want to use the facilities of the artifact enabled container.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163234 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2004-11-14 07:13:05 +00:00
parent 8d339b01b8
commit 2c09099b78
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ public class DefaultPluginManager
public void contextualize( Context context )
throws ContextException
{
container = (ArtifactEnabledContainer) context.get( PlexusConstants.PLEXUS_KEY );
container = (PlexusContainer) context.get( PlexusConstants.PLEXUS_KEY );
}
public void initialize()