Package org.apache.maven.classrealm
Class DefaultClassRealmRequest
java.lang.Object
org.apache.maven.classrealm.DefaultClassRealmRequest
- All Implemented Interfaces:
ClassRealmRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.classrealm.ClassRealmRequest
ClassRealmRequest.RealmType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ClassRealmConstituent> private final Map<String, ClassLoader> private final ClassLoaderprivate final ClassRealmRequest.RealmType -
Constructor Summary
ConstructorsConstructorDescriptionDefaultClassRealmRequest(ClassRealmRequest.RealmType type, ClassLoader parent, List<String> parentImports, Map<String, ClassLoader> foreignImports, List<ClassRealmConstituent> constituents) -
Method Summary
Modifier and TypeMethodDescriptionGets the constituents for the class realm.Gets the packages/types to import from foreign realms.Gets the parent class realm (if any).Gets the packages/types to import from the parent realm.getType()Gets the type of the class realm.
-
Field Details
-
type
-
parent
-
parentImports
-
foreignImports
-
constituents
-
-
Constructor Details
-
DefaultClassRealmRequest
DefaultClassRealmRequest(ClassRealmRequest.RealmType type, ClassLoader parent, List<String> parentImports, Map<String, ClassLoader> foreignImports, List<ClassRealmConstituent> constituents)
-
-
Method Details
-
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
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
- Specified by:
getImportsin interfaceClassRealmRequest
-
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
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
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.
-