Class BasicBeanConfiguration
java.lang.Object
net.solarnetwork.node.service.support.BasicBeanConfiguration
- All Implemented Interfaces:
BeanConfiguration
Basic implementation of
BeanConfiguration.
The configurable properties of this class are:
- attributes
- A Map of attributes for the configuration.
- configuration
- A Map of bean property values.
- ordering
- An ordering value. Defaults to
DEFAULT_ORDERING.
- Version:
- $Id$
- Author:
- matt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntegerThe default value for theorderingproperty. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet configuration attributes as a Map.Get the configuration properties as a Map.Get a configuration ordering.voidsetAttributes(Map<String, Object> attributes) voidsetConfiguration(Map<String, Object> configuration) voidsetOrdering(Integer ordering)
-
Field Details
-
DEFAULT_ORDERING
The default value for theorderingproperty.
-
-
Constructor Details
-
BasicBeanConfiguration
public BasicBeanConfiguration()
-
-
Method Details
-
getAttributes
Description copied from interface:BeanConfigurationGet configuration attributes as a Map.These attributes are not configuration properties that get applied directly to services, but can be used to distinguish one configuration from another.
- Specified by:
getAttributesin interfaceBeanConfiguration- Returns:
- Map of configuration attributes
-
getConfiguration
Description copied from interface:BeanConfigurationGet the configuration properties as a Map.- Specified by:
getConfigurationin interfaceBeanConfiguration- Returns:
- Map of configuration properties
-
setConfiguration
- Parameters:
configuration- the configuration to set
-
setAttributes
- Parameters:
attributes- the attributes to set
-
getOrdering
Description copied from interface:BeanConfigurationGet a configuration ordering.The ordering can be used to treat similar configurations in an ordered fashion.
- Specified by:
getOrderingin interfaceBeanConfiguration- Returns:
- the ordering
-
setOrdering
- Parameters:
ordering- the ordering to set
-