public class MapBindingRegistry extends Object implements BindingRegistry
Modifier and Type | Field and Description |
---|---|
protected ConcurrentMap<String,Object> |
registry |
Constructor and Description |
---|
MapBindingRegistry() |
Modifier and Type | Method and Description |
---|---|
boolean |
bind(String name,
Object obj) |
void |
close() |
Object |
getContext()
The context used by the registry.
|
Object |
lookup(String name) |
void |
setContext(Object ctx) |
void |
unbind(String name) |
protected ConcurrentMap<String,Object> registry
public Object lookup(String name)
lookup
in interface BindingRegistry
public boolean bind(String name, Object obj)
bind
in interface BindingRegistry
public void unbind(String name)
unbind
in interface BindingRegistry
public void close()
close
in interface BindingRegistry
public Object getContext()
BindingRegistry
getContext
in interface BindingRegistry
public void setContext(Object ctx)
setContext
in interface BindingRegistry
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.