@NotThreadSafe public final class ServiceContext extends ConfigProperties
MISSING_CONFIG_PROPERTIES, NO_CONFIG_PROPERTIES
MISSING_KEYED_GROUP, NO_KEYED_GROUPS
ANONYMOUS, HASH_LOAD_FACTOR, MAP_ENTRY_COMPARATOR
Constructor and Description |
---|
ServiceContext()
Constructs a ServiceContext.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
Object value)
Adds a keyed value.
|
void |
addClassLib(ClassLibEntity classLib)
Adds a class library.
|
void |
addServiceAlias(String alias)
Adds a service alias.
|
ServiceContext |
copy()
Creates a copy of this.
|
ServiceContext |
freeze()
Freezes this.
|
List<ClassLibEntity> |
getClassLibs()
Gets the class libraries.
|
Set<String> |
getServiceAliases()
Gets the service aliases.
|
String |
getServiceName()
Gets the service name.
|
void |
setOverriden(ConfigProperties overriden)
Sets the overriden properties.
|
void |
setOverrider(ConfigProperties overrider)
Sets the overrider properties.
|
void |
setServiceName(String serviceName)
Sets the service name.
|
void |
setValue(String key,
Object value)
Sets a keyed value.
|
add, add, addPropertyChangeListener, clearOverriden, containsGroupKey, containsValueKey, equals, getGroup, getGroups, getMissingGroup, getNoGroups, getObjects, getOverriden, getOverrider, hashCode, isEmpty, removePropertyChangeListener, restoreMonitoredValues, saveMonitoredValues
addAll, addGroup, clear, frozen, getGroupsEntries, getGroupsKeys, getGroupsSize, getName, isMissing, removeGroup, setGroup, thawed, toPropertiesMap
addAll, addObject, areValuesHidden, checkNotFrozen, getBoolean, getBoolean, getBoolean, getClassDef, getClassDef, getClassDefs, getDouble, getElapsed, getInt, getInteger, getLong, getLong, getObject, getPassword, getString, getString, getStrings, getThisLogger, getType, getValues, getValuesEntries, getValuesKeys, getValuesSize, hashCapacity, isFrozen, isHidden, isMultiple, removeValue, setHidden, setObjects, setValuesHidden, substitute, toString
public void add(@Nonnull String key, @Nonnull Object value)
If the key is already in the dictionary, the value is appended to the list of values for that key.
add
in class ConfigProperties
key
- The value key.value
- The value.public void addClassLib(@Nonnull ClassLibEntity classLib)
classLib
- The class library.public void addServiceAlias(@Nonnull String alias)
alias
- The service alias.public ServiceContext copy()
copy
in class ConfigProperties
public ServiceContext freeze()
freeze
in class ConfigProperties
@Nonnull @CheckReturnValue public List<ClassLibEntity> getClassLibs()
@Nonnull @CheckReturnValue public Set<String> getServiceAliases()
@Nonnull @CheckReturnValue public String getServiceName()
public void setOverriden(ConfigProperties overriden)
setOverriden
in class ConfigProperties
overriden
- The overriden properties.public void setOverrider(ConfigProperties overrider)
setOverrider
in class ConfigProperties
overrider
- The overrider properties.public void setServiceName(@Nonnull String serviceName)
serviceName
- The service name.@Nonnull public void setValue(@Nonnull String key, Object value)
If the key is already in the dictionary, its value is replaced.
setValue
in class ConfigProperties
key
- The value key.value
- The value.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.