public class ServiceMappingConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME
The name of this class
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
void |
addMapping(ServiceMappingGroup group)
Adds a new
ServiceMappingGroup into the service mapping configurations. |
void |
clear()
Removes all the configuration information, if any.
|
java.util.Collection |
getAllMappingGroups()
Retrieves all the mapping configurations
|
static ServiceMappingConfiguration |
getInstance() |
static java.lang.String |
getMappingConfigurationFileName() |
ServiceMappingGroup |
getMappingGroup(java.lang.String groupName)
Retrieves mapping configuration based on the mapping name
|
static ServiceMappingConfiguration |
getNewEmptyInstance() |
java.lang.String |
toString() |
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public static ServiceMappingConfiguration getInstance()
public static ServiceMappingConfiguration getNewEmptyInstance()
public void clear()
public static java.lang.String getMappingConfigurationFileName()
public java.util.Collection getAllMappingGroups()
Collection
that contains ServiceMappingGroup
instances. List is empty if there no mapping configurationspublic ServiceMappingGroup getMappingGroup(java.lang.String groupName)
groupName
- the name of the mapping groupServiceMappingGroup
identifies by the given name. If no mapping is found, this method returns Null.public void addMapping(ServiceMappingGroup group)
ServiceMappingGroup
into the service mapping configurations. If the mapping
is null, or the mapping does not have a name, a message will be logged, and nothing will be
added. If a service mapping with the same service name is already in this collection, the
existing mapping will be overwritten by the newly given mapping. A message will be logged.mapping
- the service mapping to be addedpublic java.lang.String toString()
toString
in class java.lang.Object