public class ClusterInfoPropertyPlaceholderConfigurer extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer implements org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.BeanFactoryAware, ClusterInfoAware
ClusterInfo parameters as injected
properties that can be used within Spring application context. The following is a list of the
properties: ClusterInfo.getNumberOfInstances()ClusterInfo.getNumberOfBackups()ClusterInfo.getInstanceId()ClusterInfo.getBackupId()ClusterInfo.getSchema()ClusterInfo.getRunningNumber()ClusterInfo.getSuffix()ClusterInfo.getName()If the cluster info parameter is not set (has null value) an empty string will be
used.
| Modifier and Type | Field and Description |
|---|---|
static String |
BACKUP_ID_PROP |
static String |
INSTANCE_ID_PROP |
static String |
NAME_PROP |
static String |
NUMBER_OF_BACKUPS_PROP |
static String |
NUMBER_OF_INSTANCES_PROP |
static String |
RUNNING_NUMBER_OFFEST_1_PROP |
static String |
RUNNING_NUMBER_PROP |
static String |
SCALE_PROP |
static String |
SCHEMA_PROP |
static String |
SUFFIX_PROP |
SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDEDEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, trimValues, valueSeparator| Constructor and Description |
|---|
ClusterInfoPropertyPlaceholderConfigurer() |
ClusterInfoPropertyPlaceholderConfigurer(ClusterInfo clusterInfo) |
| Modifier and Type | Method and Description |
|---|---|
static Properties |
createProperties(ClusterInfo clusterInfo) |
protected void |
processProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactoryToProcess,
Properties props) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setBeanName(String beanName) |
void |
setClusterInfo(ClusterInfo clusterInfo)
Sets the cluster information.
|
resolvePlaceholder, resolvePlaceholder, resolveSystemProperty, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeNamedoProcessProperties, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setTrimValues, setValueSeparatorconvertProperties, convertProperty, convertPropertyValue, getOrder, postProcessBeanFactory, setOrderpublic static final String NUMBER_OF_INSTANCES_PROP
public static final String NUMBER_OF_BACKUPS_PROP
public static final String INSTANCE_ID_PROP
public static final String BACKUP_ID_PROP
public static final String SCHEMA_PROP
public static final String RUNNING_NUMBER_PROP
public static final String RUNNING_NUMBER_OFFEST_1_PROP
public static final String SUFFIX_PROP
public static final String NAME_PROP
public static final String SCALE_PROP
public ClusterInfoPropertyPlaceholderConfigurer()
public ClusterInfoPropertyPlaceholderConfigurer(ClusterInfo clusterInfo)
public static Properties createProperties(ClusterInfo clusterInfo)
public void setClusterInfo(ClusterInfo clusterInfo)
ClusterInfoAwareNote, the cluster information is obtained externally from the application context which
means that this feature need to be supported by specific containers (and is not supported by
plain Spring application context). This means that beans that implement ClusterInfoAware should take into account the fact that the cluster info provided might be
null.
setClusterInfo in interface ClusterInfoAwareclusterInfo - The cluster information to be injectedpublic void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwaresetBeanName in class org.springframework.beans.factory.config.PlaceholderConfigurerSupportpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwaresetBeanFactory in class org.springframework.beans.factory.config.PlaceholderConfigurerSupportprotected void processProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactoryToProcess,
Properties props)
throws org.springframework.beans.BeansException
processProperties in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurerorg.springframework.beans.BeansExceptionCopyright © GigaSpaces.