Class CDOCollectionLoadingConfigResolver

java.lang.Object
org.eclipse.emf.cdo.common.revision.CDOCollectionLoadingConfigResolver

public class CDOCollectionLoadingConfigResolver extends Object
Resolves effective collection-loading configuration for concrete model features.

Annotation lookup is lazy and limited to the feature, its declaring class, and its containing package. This class has no dependency on a package registry and owns its annotation cache for use by both clients and servers.

Since:
4.29
Author:
Eike Stepper
  • Constructor Details

    • CDOCollectionLoadingConfigResolver

      public CDOCollectionLoadingConfigResolver()
  • Method Details

    • resolve

      Resolves the effective configuration for a feature.

      A null session configuration disables modern partial collection loading. Otherwise the initial and resolve dimensions are resolved independently using session, repository, annotation, and default values in that order.

      Parameters:
      sessionConfig - the session configuration, or null to disable modern partial collection loading
      repositoryConfig - the repository-wide configuration, or null
      feature - the concrete structural feature to resolve
      Returns:
      the fully resolved configuration, or null when the session configuration is null
    • clearModelCache

      public void clearModelCache()
      Clears all lazily cached annotation results.

      Call this when model/package definitions are replaced, because a new package instance may use the same symbolic names with different annotations.