Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.apache.maven.classrealm;
 
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
  * regarding copyright ownership.  The ASF licenses this file
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
Manages the class realms used by Maven. Warning: This is an internal utility interface that is only public for technical reasons, it is not part of the public API. In particular, this interface can be changed or deleted without prior notice.

Author(s):
Benjamin Bentmann
public interface ClassRealmManager
{

    
Gets the class realm hosting the Maven core.

Returns:
The class realm hosting the Maven core, never null.
    ClassRealm getCoreRealm();

    
Gets the class realm exposing the Maven API. This is basically a restricted view on the Maven core realm.

Returns:
The class realm exposing the Maven API, never null.
    ClassRealm getMavenApiRealm();

    
Creates a new class realm for the specified project and its build extensions.

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.
    ClassRealm createProjectRealmModel modelList<Artifactartifacts );

    
Creates a new class realm for the specified build extension.

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.
    ClassRealm createExtensionRealmPlugin extensionList<Artifactartifacts );

    
Creates a new class realm for the specified plugin.

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.
    ClassRealm createPluginRealmPlugin pluginClassLoader parentList<StringparentImports,
                                  Map<StringClassLoaderforeignImportsList<Artifactartifacts );
New to GrepCode? Check out our FAQ X