public interface ConfigurationOption
ConfigurationOption allows to specify a Map of properties that are injected into the
container. You have the choice of either create (the default) or override an existing
configuration Configuration Options e.g. in ConfigAdmin| Modifier and Type | Method and Description |
|---|---|
org.ops4j.pax.exam.Option |
asOption()
Creates an Option from the current settings that could be used in Configure methods
|
ConfigurationOption |
create(boolean create)
Specify if the configuration should be created if it does not yet exits
|
ConfigurationOption |
factory(boolean factory)
Specify if the target of the properties are a factory configuration
|
String |
getId() |
Map<String,?> |
getProperties() |
boolean |
isCreate() |
boolean |
isFactory() |
boolean |
isOverride() |
ConfigurationOption |
override(boolean override)
Specify if the properties of an existing configuration should be overriden/extended by the
ones given here, this does not work with factories!
|
ConfigurationOption |
put(String key,
Object value)
Add the key/value pair to the overriden options.
|
ConfigurationOption |
putAll(Map<String,?> properties)
Puts all properties from the given map to this configuration object, see
put(String, Object) for more details |
String getId()
ConfigurationOption put(String key, Object value)
ConfigurationAdmin
key - property keyvalue - property valuethis for chainingConfigurationOption putAll(Map<String,?> properties)
put(String, Object) for more detailsproperties - configuration propertiesthis for chainingConfigurationOption create(boolean create)
create - should configuration be created?this for chainingConfigurationOption override(boolean override)
override - should this option override an existing one?this for chainingConfigurationOption factory(boolean factory)
factory - is this a factory configuration?this for chainingboolean isCreate()
true if this configuration should be created if not exits,
false otherwhiseboolean isOverride()
true if existing configurations should be extended/ovewritten
false otherwhiseboolean isFactory()
true if a factory configuration should be created false
otherwhiseorg.ops4j.pax.exam.Option asOption()
Copyright © 2006–2021 OPS4J - Open Participation Software for Java. All rights reserved.