public class DefaultCacheDistributionPolicy extends Object implements CacheDistributionPolicy
name as specified by
the metadata.ClassMetaData.getDataCacheName()| Constructor and Description |
|---|
DefaultCacheDistributionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object.
|
String |
selectCache(OpenJPAStateManager sm,
Object context)
Selects the name of the cache where the given managed proxy object state be cached.
|
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties.
|
void |
startConfiguration()
Invoked before bean property configuration is begun on this object.
|
public String selectCache(OpenJPAStateManager sm, Object context)
CacheDistributionPolicyselectCache in interface CacheDistributionPolicysm - the managed proxy object to be cached. The actual managed instance can be accessed from the proxy
instance simply as sm.getManagedInstance().context - the context of invocation. No specific semantics is attributed currently. Can be null.public void endConfiguration()
ConfigurableendConfiguration in interface Configurablepublic void setConfiguration(Configuration conf)
ConfigurablesetConfiguration in interface Configurablepublic void startConfiguration()
ConfigurablestartConfiguration in interface ConfigurableCopyright © 2006–2022 Apache Software Foundation. All rights reserved.