- All Implemented Interfaces:
- ProjectManager.IResourceDescriptor
- Enclosing class:
- StandaloneProjectMap
public static final class StandaloneProjectMap.MultiplePackageResourceDescriptor
extends StandaloneProjectMap.AbstractResourceDescriptor
PackageDescriptor supports lazy class loading and initialization of a
compiled Ecore package. Class loading occurs in the context of the
ProjectMap, which performs classpath scans, so it is assumed that
everything is visible. Re-use in a larger context may require a new
ProjectMap to be created.
If a PackageDescriptor is installed under multiple URIs, the resource
created by the first load is shared by all subsequent resolutions.
If a PackageDescriptor is set to useModel, the *.ecore file is loaded to
provide the EPackage, rather than the Java className.
A PackageDescriptor maintains the declared context of a package which may be shared by
many ResourceSets. In contrast a PackageStatus maintains the actual state of a package
for a particular EPackage.Registry, each of which may have a distinct ResourceLoadStrategy
and consequently may not load the same EPackage.