org.jpos.util
Class NameRegistrar
java.lang.Object
org.jpos.util.NameRegistrar
- All Implemented Interfaces:
- Loggeable
public class NameRegistrar
- extends Object
- implements Loggeable
Allow runtime binding of jPOS's components (ISOChannels, Logger, MUXes, etc)
- Version:
- $Revision$ $Date$
- Author:
- Alejandro P. Revilla
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getMap
public static Map getMap()
getInstance
public static NameRegistrar getInstance()
- Returns:
- singleton instance
register
public static void register(String key,
Object value)
- register object
- Parameters:
key - - key with which the specified value is to be associated.value - - value to be associated with the specified key
unregister
public static void unregister(String key)
- Parameters:
key - key whose mapping is to be removed from registrar.
get
public static Object get(String key)
throws NameRegistrar.NotFoundException
- Parameters:
key - key whose associated value is to be returned.
- Throws:
NameRegistrar.NotFoundException - if key not present in registrar
getIfExists
public static Object getIfExists(String key)
- Parameters:
key - key whose associated value is to be returned, null if not present.
dump
public void dump(PrintStream p,
String indent)
- Specified by:
dump in interface Loggeable
dump
public void dump(PrintStream p,
String indent,
boolean detail)
Copyright © 1998-2012 jPOS.org. All Rights Reserved.