org.apache.maven.classrealm
Interface ClassRealmRequest


public interface ClassRealmRequest

Describes the requirements for a new class realm.

Author:
Benjamin Bentmann

Nested Class Summary
static class ClassRealmRequest.RealmType
          The type of a class realm.
 
Method Summary
 java.util.List<ClassRealmConstituent> getConstituents()
          Gets the constituents for the class realm.
 java.util.Map<java.lang.String,java.lang.ClassLoader> getForeignImports()
          Gets the packages/types to import from foreign realms.
 java.util.List<java.lang.String> getImports()
          Deprecated. Use getParentImports() instead.
 java.lang.ClassLoader getParent()
          Gets the parent class realm (if any).
 java.util.List<java.lang.String> getParentImports()
          Gets the packages/types to import from the parent realm.
 ClassRealmRequest.RealmType getType()
          Gets the type of the class realm.
 

Method Detail

getType

ClassRealmRequest.RealmType getType()
Gets the type of the class realm.

Returns:
The type of the class realm, never null.

getParent

java.lang.ClassLoader getParent()
Gets the parent class realm (if any).

Returns:
The parent class realm or null if using the default parent.

getImports

@Deprecated
java.util.List<java.lang.String> getImports()
Deprecated. Use getParentImports() instead.


getParentImports

java.util.List<java.lang.String> getParentImports()
Gets the packages/types to import from the parent realm.

Returns:
The modifiable list of packages/types to import from the parent realm, never null.

getForeignImports

java.util.Map<java.lang.String,java.lang.ClassLoader> getForeignImports()
Gets the packages/types to import from foreign realms.

Returns:
The modifiable map of packages/types to import from foreign realms, never null.

getConstituents

java.util.List<ClassRealmConstituent> getConstituents()
Gets the constituents for the class realm.

Returns:
The modifiable list of constituents for the class realm, never null.


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.