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)
CacheDistributionPolicy
selectCache
in interface CacheDistributionPolicy
sm
- 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()
Configurable
endConfiguration
in interface Configurable
public void setConfiguration(Configuration conf)
Configurable
setConfiguration
in interface Configurable
public void startConfiguration()
Configurable
startConfiguration
in interface Configurable
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.