|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImportOverridePolicy
This interface represents the import override policy which is a mechanism that allows deployers to narrow the version constraints in the import dependencies of a specific module definition to control the resolution.
The import override policy is invoked before the default or custom import policy of the module instance is executed during initialization.
ImportPolicy
,
ModuleDefinition
,
VersionConstraint
Method Summary | |
---|---|
Map<String,VersionConstraint> |
narrow(ModuleDefinition importer,
Map<String,VersionConstraint> constraints)
Returns a map of imported module names and overridden version constraints for the module definition. |
Method Detail |
---|
Map<String,VersionConstraint> narrow(ModuleDefinition importer, Map<String,VersionConstraint> constraints)
For each import dependency, the overridden version constraint must be within the boundary of the original version constraint that was specified in the module definition at build time. Otherwise module initialization will fail.
importer
- the importing module definition.constraints
- an unmodifiable map of imported module names and
overridden version constraints.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |