Module eclipselink

Interface ProjectCache

  • All Known Implementing Classes:
    FileBasedProjectCache

    public interface ProjectCache
    Purpose: Interface used to support caching the project generated from metadata avoiding costs associated processing the same metadata over multiple deployments.
    See Also:
    PersistenceUnitProperties.PROJECT_CACHE
    Author:
    cdelahunt
    Since:
    EclipseLink 2.4.1
    • Method Detail

      • retrieveProject

        Project retrieveProject​(Map<String,​?> properties,
                                ClassLoader loader,
                                SessionLog log)
        PUBLIC: This method is responsible for returning the cached metadata as represented by a Project instance. This instance will have limited processing performed to turn string instances into classes during deployment. The classloader provided is the application loader. Please note that using it to load application classes (Entities) may prevent them from being dynamically woven.
        Since:
        EclipseLink 2.4.1
      • storeProject

        void storeProject​(Project project,
                          Map<String,​?> properties,
                          SessionLog log)
        PUBLIC: This method is responsible for caching a project instance representing the application metadata.
        Since:
        EclipseLink 2.4.1