Class FileBasedProjectCache

java.lang.Object
org.eclipse.persistence.jpa.metadata.FileBasedProjectCache
All Implemented Interfaces:
ProjectCache

public class FileBasedProjectCache extends Object implements ProjectCache

Purpose: Support serializing/deserializing a project representing application metadata to/from a file.

  • Constructor Details

    • FileBasedProjectCache

      public FileBasedProjectCache()
      Default constructor.
  • Method Details

    • retrieveProject

      public Project retrieveProject(Map<String,?> properties, ClassLoader loader, SessionLog log)
      Description copied from interface: ProjectCache
      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.
      Specified by:
      retrieveProject in interface ProjectCache
    • storeProject

      public void storeProject(Project project, Map<String,?> properties, SessionLog log)
      Description copied from interface: ProjectCache
      PUBLIC: This method is responsible for caching a project instance representing the application metadata.
      Specified by:
      storeProject in interface ProjectCache
    • getConfigPropertyLogDebug

      public Object getConfigPropertyLogDebug(String propertyName, Map<String,?> properties, SessionLog log)
      Check the provided map for an object with the given name. If that object is not available, check the System properties. Log the value returned if logging is enabled at the FINEST level
      Parameters:
      propertyName - property name
      properties - properties
      log - logger
      Returns:
      object for the given name, null if not found