Package org.apache.maven.classrealm
Class DefaultClassRealmManager
java.lang.Object
org.apache.maven.classrealm.DefaultClassRealmManager
- All Implemented Interfaces:
- ClassRealmManager
Manages the class realms used by Maven. Warning: This is an internal utility class that is only
 public for technical reasons, it is not part of the public API. In particular, this class can be changed or deleted
 without prior notice.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultClassRealmManager(CoreRealm coreRealm, List<ClassRealmManagerDelegate> delegates, CoreExports exports) 
- 
Method SummaryModifier and TypeMethodDescriptionorg.codehaus.plexus.classworlds.realm.ClassRealmcreateExtensionRealm(Plugin plugin, List<org.eclipse.aether.artifact.Artifact> artifacts) Creates a new class realm for the specified build extension.org.codehaus.plexus.classworlds.realm.ClassRealmcreatePluginRealm(Plugin plugin, ClassLoader parent, List<String> parentImports, Map<String, ClassLoader> foreignImports, List<org.eclipse.aether.artifact.Artifact> artifacts) Creates a new class realm for the specified plugin.org.codehaus.plexus.classworlds.realm.ClassRealmcreateProjectRealm(Model model, List<org.eclipse.aether.artifact.Artifact> artifacts) Creates a new class realm for the specified project and its build extensions.org.codehaus.plexus.classworlds.realm.ClassRealmGets the class realm hosting the Maven core.org.codehaus.plexus.classworlds.realm.ClassRealmGets the class realm exposing the Maven 4 API.org.codehaus.plexus.classworlds.realm.ClassRealmGets the class realm exposing the Maven API.
- 
Field Details- 
API_REALMID- See Also:
 
- 
API_V4_REALMID- See Also:
 
 
- 
- 
Constructor Details- 
DefaultClassRealmManager@Inject public DefaultClassRealmManager(CoreRealm coreRealm, List<ClassRealmManagerDelegate> delegates, CoreExports exports) 
 
- 
- 
Method Details- 
getMavenApiRealmpublic org.codehaus.plexus.classworlds.realm.ClassRealm getMavenApiRealm()Description copied from interface:ClassRealmManagerGets the class realm exposing the Maven API. This is basically a restricted view on the Maven core realm.- Specified by:
- getMavenApiRealmin interface- ClassRealmManager
- Returns:
- The class realm exposing the Maven API, never null.
 
- 
getMaven4ApiRealmpublic org.codehaus.plexus.classworlds.realm.ClassRealm getMaven4ApiRealm()Description copied from interface:ClassRealmManagerGets the class realm exposing the Maven 4 API. This is basically a restricted view on the Maven core realm.- Specified by:
- getMaven4ApiRealmin interface- ClassRealmManager
- Returns:
- The class realm exposing the Maven API, never null.
 
- 
getCoreRealmpublic org.codehaus.plexus.classworlds.realm.ClassRealm getCoreRealm()Description copied from interface:ClassRealmManagerGets the class realm hosting the Maven core.- Specified by:
- getCoreRealmin interface- ClassRealmManager
- Returns:
- The class realm hosting the Maven core, never null.
 
- 
createProjectRealmpublic org.codehaus.plexus.classworlds.realm.ClassRealm createProjectRealm(Model model, List<org.eclipse.aether.artifact.Artifact> artifacts) Description copied from interface:ClassRealmManagerCreates a new class realm for the specified project and its build extensions.- Specified by:
- createProjectRealmin interface- ClassRealmManager
- Parameters:
- model- The model of the project for which to create a realm, must not be- null.
- artifacts- The artifacts to add to the class realm, may be- null. Unresolved artifacts (i.e. with a missing file) will automatically be excluded from the realm.
- Returns:
- The new project realm, never null.
 
- 
createExtensionRealmpublic org.codehaus.plexus.classworlds.realm.ClassRealm createExtensionRealm(Plugin plugin, List<org.eclipse.aether.artifact.Artifact> artifacts) Description copied from interface:ClassRealmManagerCreates a new class realm for the specified build extension.- Specified by:
- createExtensionRealmin interface- ClassRealmManager
- Parameters:
- plugin- The extension plugin for which to create a realm, must not be- null.
- artifacts- The artifacts to add to the class realm, may be- null. Unresolved artifacts (i.e. with a missing file) will automatically be excluded from the realm.
- Returns:
- The new extension realm, never null.
 
- 
createPluginRealmpublic org.codehaus.plexus.classworlds.realm.ClassRealm createPluginRealm(Plugin plugin, ClassLoader parent, List<String> parentImports, Map<String, ClassLoader> foreignImports, List<org.eclipse.aether.artifact.Artifact> artifacts) Description copied from interface:ClassRealmManagerCreates a new class realm for the specified plugin.- Specified by:
- createPluginRealmin interface- ClassRealmManager
- Parameters:
- plugin- The plugin for which to create a realm, must not be- null.
- parent- The parent realm for the new realm, may be- null.
- parentImports- The packages/types to import from the parent realm, may be- null.
- foreignImports- The packages/types to import from foreign realms, may be- null.
- artifacts- The artifacts to add to the class realm, may be- null. Unresolved artifacts (i.e. with a missing file) will automatically be excluded from the realm.
- Returns:
- The new plugin realm, never null.
 
 
-