Class NameRegistrar
java.lang.Object
org.jpos.util.NameRegistrar
- All Implemented Interfaces:
Loggeable
Allow runtime binding of jPOS's components (ISOChannels, Logger, MUXes, etc)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(PrintStream p, String indent) voiddump(PrintStream p, String indent, boolean detail) static <T> TGet a value from the registry.static <T> TGet a value from the registry - wait for it specified time.getAsMap()static <T> TgetIfExists(String key) Get a value from the registry - without castingNotFoundException.static NameRegistrargetSpace()static voidregister objectstatic voidunregister(String key)
-
Method Details
-
getSpace
-
getAsMap
-
getInstance
- Returns:
- singleton instance
-
register
-
unregister
- Parameters:
key- key whose mapping is to be removed from registrar.
-
get
Get a value from the registry.- Type Parameters:
T- desired type of entry value.- Parameters:
key- the key whose associated value is to be returned.- Returns:
- a value
- Throws:
NameRegistrar.NotFoundException- if key not present in registrar
-
get
Get a value from the registry - wait for it specified time.- Type Parameters:
T- desired type of value.- Parameters:
key- the key whose associated value is to be returned.timeout- the maximum waiting time (in miliseconds) for the appearance of value in the registry.- Returns:
- a value or
nullif it does not exist
-
getIfExists
Get a value from the registry - without castingNotFoundException.- Type Parameters:
T- desired type of value.- Parameters:
key- the key whose associated value is to be returned.- Returns:
- a value or
nullif it does not exist
-
dump
-
dump
-