/[Apache-SVN]
ViewVC logotype

Revision 563173


Jump to revision: Previous Next
Author: kenney
Date: Mon Aug 6 15:38:57 2007 UTC (17 years, 3 months ago)
Changed paths: 3
Log Message:
Add get/setParentContainer to the configuration, and use it in
the embedder.

If the classrealm that's passed in has a parent realm, 
then only the resources from the realm are scanned (getRealmResources).
This was done to re-use components from parent realms.

However, when embedding maven within another plexus container,
providing a new dummy classworld with the current classloader
as the parent, no components will be found. Since there's no 
parent container, it won't be checked for components.

So, allowing a parent realm to be set in classworlds also
requires a parent container to be set, so that when no components
are found (since they're present in the parent container),
there is a parent container available to delegate lookups to.


Changed paths

Path Details
Directorymaven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/Configuration.java modified , text changed
Directorymaven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/DefaultConfiguration.java modified , text changed
Directorymaven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26