Package org.apache.maven.classrealm
Class DefaultClassRealmRequest
- java.lang.Object
-
- org.apache.maven.classrealm.DefaultClassRealmRequest
-
- All Implemented Interfaces:
ClassRealmRequest
class DefaultClassRealmRequest extends java.lang.Object implements ClassRealmRequest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.maven.classrealm.ClassRealmRequest
ClassRealmRequest.RealmType
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ClassRealmConstituent>
constituents
private java.util.Map<java.lang.String,java.lang.ClassLoader>
foreignImports
private java.lang.ClassLoader
parent
private java.util.List<java.lang.String>
parentImports
private ClassRealmRequest.RealmType
type
-
Constructor Summary
Constructors Constructor Description DefaultClassRealmRequest(ClassRealmRequest.RealmType type, java.lang.ClassLoader parent, java.util.List<java.lang.String> parentImports, java.util.Map<java.lang.String,java.lang.ClassLoader> foreignImports, java.util.List<ClassRealmConstituent> constituents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
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.
-
-
-
Field Detail
-
type
private final ClassRealmRequest.RealmType type
-
parent
private final java.lang.ClassLoader parent
-
parentImports
private final java.util.List<java.lang.String> parentImports
-
foreignImports
private final java.util.Map<java.lang.String,java.lang.ClassLoader> foreignImports
-
constituents
private final java.util.List<ClassRealmConstituent> constituents
-
-
Constructor Detail
-
DefaultClassRealmRequest
DefaultClassRealmRequest(ClassRealmRequest.RealmType type, java.lang.ClassLoader parent, java.util.List<java.lang.String> parentImports, java.util.Map<java.lang.String,java.lang.ClassLoader> foreignImports, java.util.List<ClassRealmConstituent> constituents)
-
-
Method Detail
-
getType
public ClassRealmRequest.RealmType getType()
Description copied from interface:ClassRealmRequest
Gets the type of the class realm.- Specified by:
getType
in interfaceClassRealmRequest
- Returns:
- The type of the class realm, never
null
.
-
getParent
public java.lang.ClassLoader getParent()
Description copied from interface:ClassRealmRequest
Gets the parent class realm (if any).- Specified by:
getParent
in interfaceClassRealmRequest
- Returns:
- The parent class realm or
null
if using the default parent.
-
getImports
public java.util.List<java.lang.String> getImports()
- Specified by:
getImports
in interfaceClassRealmRequest
-
getParentImports
public java.util.List<java.lang.String> getParentImports()
Description copied from interface:ClassRealmRequest
Gets the packages/types to import from the parent realm.- Specified by:
getParentImports
in interfaceClassRealmRequest
- Returns:
- The modifiable list of packages/types to import from the parent realm, never
null
.
-
getForeignImports
public java.util.Map<java.lang.String,java.lang.ClassLoader> getForeignImports()
Description copied from interface:ClassRealmRequest
Gets the packages/types to import from foreign realms.- Specified by:
getForeignImports
in interfaceClassRealmRequest
- Returns:
- The modifiable map of packages/types to import from foreign realms, never
null
.
-
getConstituents
public java.util.List<ClassRealmConstituent> getConstituents()
Description copied from interface:ClassRealmRequest
Gets the constituents for the class realm.- Specified by:
getConstituents
in interfaceClassRealmRequest
- Returns:
- The modifiable list of constituents for the class realm, never
null
.
-
-