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 Summary
Constructors Constructor Description FileBasedProjectCache()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getConfigPropertyLogDebug(String propertyName, Map<String,?> properties, SessionLog log)
Check the provided map for an object with the given name.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.void
storeProject(Project project, Map<String,?> properties, SessionLog log)
PUBLIC: This method is responsible for caching a project instance representing the application metadata.
-
-
-
Method Detail
-
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 interfaceProjectCache
-
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 interfaceProjectCache
-
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 nameproperties
- propertieslog
- logger- Returns:
- object for the given name, null if not found
-
-