|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.weblab.services.iterator.InterfacesMappingSingleton
public class InterfacesMappingSingleton
This class is a singleton in charge of the mapping between the two interfaces of the service (Configurable and QueueManager).
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||