public interface ClassRealmManager
| Modifier and Type | Method and Description | 
|---|---|
| ClassRealm | createExtensionRealm(Plugin extension,
                    List<Artifact> artifacts)Creates a new class realm for the specified build extension. | 
| ClassRealm | createPluginRealm(Plugin plugin,
                 ClassLoader parent,
                 List<String> parentImports,
                 Map<String,ClassLoader> foreignImports,
                 List<Artifact> artifacts)Creates a new class realm for the specified plugin. | 
| ClassRealm | createProjectRealm(Model model,
                  List<Artifact> artifacts)Creates a new class realm for the specified project and its build extensions. | 
| ClassRealm | getCoreRealm()Gets the class realm hosting the Maven core. | 
| ClassRealm | getMavenApiRealm()Gets the class realm exposing the Maven API. | 
ClassRealm getCoreRealm()
null.ClassRealm getMavenApiRealm()
null.ClassRealm createProjectRealm(Model model, List<Artifact> artifacts)
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.null.ClassRealm createExtensionRealm(Plugin extension, List<Artifact> artifacts)
extension - 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.null.ClassRealm createPluginRealm(Plugin plugin, ClassLoader parent, List<String> parentImports, Map<String,ClassLoader> foreignImports, List<Artifact> artifacts)
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.null.Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.