Module org.eclipse.persistence.jpa
Class FileBasedProjectCache
java.lang.Object
org.eclipse.persistence.jpa.metadata.FileBasedProjectCache
- All Implemented Interfaces:
ProjectCache
Purpose: Support serializing/deserializing a project representing application metadata to/from a file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConfigPropertyLogDebug
(String propertyName, Map<String, ?> properties, SessionLog log) Check the provided map for an object with the given name.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.
-
Constructor Details
-
FileBasedProjectCache
public FileBasedProjectCache()Default constructor.
-
-
Method Details
-
retrieveProject
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
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
-