Class FileBasedProjectCache
- java.lang.Object
-
- org.eclipse.persistence.jpa.metadata.FileBasedProjectCache
-
- All Implemented Interfaces:
ProjectCache
public class FileBasedProjectCache extends java.lang.Object implements ProjectCache
Purpose: Support serializing/deserializing a project representing application metadata to/from a file.
-
-
Constructor Summary
Constructors Constructor Description FileBasedProjectCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getConfigPropertyLogDebug(java.lang.String propertyName, java.util.Map properties, SessionLog log)
Check the provided map for an object with the given name.Project
retrieveProject(java.util.Map properties, java.lang.ClassLoader loader, SessionLog log)
PUBLIC: This method is responsible for returning the cached metadata as represented by a Project instance.void
storeProject(Project project, java.util.Map properties, SessionLog log)
PUBLIC: This method is responsible for caching a project instance representing the application metadata.
-
-
-
Method Detail
-
retrieveProject
public Project retrieveProject(java.util.Map properties, java.lang.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 interfaceProjectCache
-
storeProject
public void storeProject(Project project, java.util.Map 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 interfaceProjectCache
-
getConfigPropertyLogDebug
public java.lang.Object getConfigPropertyLogDebug(java.lang.String propertyName, java.util.Map 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
-properties
-log
-- Returns:
-
-