com.jp.protection.priv.pro.parser
Class OrderParser.ProviderRegistry

java.lang.Object
  extended by com.jp.protection.priv.pro.parser.OrderParser.ProviderRegistry
Enclosing class:
OrderParser

public static class OrderParser.ProviderRegistry
extends java.lang.Object

Represents provider's registry that holds all of the available providers.


Field Summary
protected static java.util.HashMap fProviders
           
 
Constructor Summary
OrderParser.ProviderRegistry()
           
 
Method Summary
static void add(OrderParser.Provider aProvider)
          Adds provider to the registry
static OrderParser.Provider get(java.lang.String anID)
          Returns provider implementation by its identifier
static java.util.Collection getAll()
          Returns all registered providers
static java.lang.String[] getIDs()
          Returns identifiers of all registered providers
static void remove(OrderParser.Provider aProvider)
          Removes provider from the registry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fProviders

protected static java.util.HashMap fProviders
Constructor Detail

OrderParser.ProviderRegistry

public OrderParser.ProviderRegistry()
Method Detail

add

public static void add(OrderParser.Provider aProvider)
Adds provider to the registry

Parameters:
aProvider - a Provider instance to add

remove

public static void remove(OrderParser.Provider aProvider)
Removes provider from the registry

Parameters:
aProvider - a Provider instance to remove

get

public static OrderParser.Provider get(java.lang.String anID)
Returns provider implementation by its identifier

Parameters:
anID - unique provider identifier
Returns:
found Provider instance; null otherwise

getAll

public static java.util.Collection getAll()
Returns all registered providers

Returns:
all registered providers

getIDs

public static java.lang.String[] getIDs()
Returns identifiers of all registered providers

Returns:
array containing identifiers of all registered providers