3.10.1.2. Broker Customization and Eviction
As a plugin string, this property can be used to configure the BrokerImpl with the following properties:
-
EvictFromDataCache: When evicting an object through theOpenJPAEntityManager.evictmethods, whether to also evict it from the OpenJPA’s data cache. Defaults tofalse.
<property name="openjpa.BrokerImpl" value="EvictFromDataCache=true"/>
Additionally, some advanced users may want to add capabilities to OpenJPA’s internal
org.apache.openjpa.kernel.BrokerImpl.
You can configure OpenJPA to use a custom subclass of BrokerImpl with the openjpa.BrokerImpl configuration property.
Set this property to the full class name of your custom subclass.
When implementing your subclass, consider the finalization issues mentioned in Broker Finalization.
It may be appropriate to create a subtype of both
org.apache.openjpa.kernel.BrokerImpl and
org.apache.openjpa.kernel.FinalizingBrokerImpl.