public final class InterfacesMappingSingleton
extends java.lang.Object
Configurable and
QueueManager).| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<?> |
addToMap(java.lang.String usageContext,
java.util.Iterator<?> fileIterator)
Add to the configuration map this mapping between
usageContext and fileIterator. |
void |
clearMap()
Removes every mapping from the configuration map.
|
static InterfacesMappingSingleton |
getInstance()
Get the existing instance of MappingSingleton or initialise it.
|
java.util.Iterator<?> |
getIterator(java.lang.String usageContext)
Get the iterator associated to this usageContext or
null if not configured. |
boolean |
isConfigured(java.lang.String usageContext)
Check if the usageContext in parameter has been configured.
|
void |
removeConfiguration(java.lang.String usageContext)
Removes
usageContext from the configuration map. |
public static InterfacesMappingSingleton getInstance()
public java.util.Iterator<?> addToMap(java.lang.String usageContext,
java.util.Iterator<?> fileIterator)
usageContext and fileIterator.usageContext - A non-null UsageContext used for the configuration.fileIterator - The file iterator generated by commons-io, to be associated with usageContext.usageContext, or null if there was no mapping for usageContext.public void clearMap()
public java.util.Iterator<?> getIterator(java.lang.String usageContext)
null if not configured.usageContext - A non-null UsageContext previously configured.usageContext or null if not configured.public boolean isConfigured(java.lang.String usageContext)
usageContext - The String to test existence in the configuration map.usageContext is in the map.public void removeConfiguration(java.lang.String usageContext)
usageContext from the configuration map. If a mapping was defined, it consumes the iterator till it's end to eases its collection by
the garbage collector.usageContext - A non-null UsageContext to remove the configuration.Copyright © 2004-2012. All Rights Reserved.