Class OpenJPAVersionAndConfigurationTypeValidationPolicy
java.lang.Object
org.apache.openjpa.conf.OpenJPAVersionAndConfigurationTypeValidationPolicy
- All Implemented Interfaces:
CacheMarshaller.ValidationPolicy, Configurable
public class OpenJPAVersionAndConfigurationTypeValidationPolicy
extends Object
implements CacheMarshaller.ValidationPolicy, Configurable
Compute validity based on whether or not the cached data is from the same
version of Kodo as the current install. This also checks OpenJPA version
information in case the OpenJPA jars were independently updated.
- Since:
- 1.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked upon completion of bean property configuration for this object.Return an object that theCacheMarshallershould store.Returns an object that this policy considers to be valid, based ono.voidInvoked prior to setting bean properties.voidInvoked before bean property configuration is begun on this object.
-
Constructor Details
-
OpenJPAVersionAndConfigurationTypeValidationPolicy
public OpenJPAVersionAndConfigurationTypeValidationPolicy()
-
-
Method Details
-
getCacheableData
Description copied from interface:CacheMarshaller.ValidationPolicyReturn an object that theCacheMarshallershould store.- Specified by:
getCacheableDatain interfaceCacheMarshaller.ValidationPolicy
-
getValidData
Description copied from interface:CacheMarshaller.ValidationPolicyReturns an object that this policy considers to be valid, based ono. Ifois not valid, this method will returnnull.- Specified by:
getValidDatain interfaceCacheMarshaller.ValidationPolicy
-
setConfiguration
Description copied from interface:ConfigurableInvoked prior to setting bean properties.- Specified by:
setConfigurationin interfaceConfigurable
-
startConfiguration
public void startConfiguration()Description copied from interface:ConfigurableInvoked before bean property configuration is begun on this object.- Specified by:
startConfigurationin interfaceConfigurable
-
endConfiguration
public void endConfiguration()Description copied from interface:ConfigurableInvoked upon completion of bean property configuration for this object.- Specified by:
endConfigurationin interfaceConfigurable
-