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>constituentsprivate java.util.Map<java.lang.String,java.lang.ClassLoader>foreignImportsprivate java.lang.ClassLoaderparentprivate java.util.List<java.lang.String>parentImportsprivate ClassRealmRequest.RealmTypetype
-
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.ClassLoadergetParent()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.RealmTypegetType()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:ClassRealmRequestGets the type of the class realm.- Specified by:
getTypein interfaceClassRealmRequest- Returns:
- The type of the class realm, never
null.
-
getParent
public java.lang.ClassLoader getParent()
Description copied from interface:ClassRealmRequestGets the parent class realm (if any).- Specified by:
getParentin interfaceClassRealmRequest- Returns:
- The parent class realm or
nullif using the default parent.
-
getImports
public java.util.List<java.lang.String> getImports()
- Specified by:
getImportsin interfaceClassRealmRequest
-
getParentImports
public java.util.List<java.lang.String> getParentImports()
Description copied from interface:ClassRealmRequestGets the packages/types to import from the parent realm.- Specified by:
getParentImportsin 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:ClassRealmRequestGets the packages/types to import from foreign realms.- Specified by:
getForeignImportsin 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:ClassRealmRequestGets the constituents for the class realm.- Specified by:
getConstituentsin interfaceClassRealmRequest- Returns:
- The modifiable list of constituents for the class realm, never
null.
-
-