|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.container.S3Container
public class S3Container
Slim3 container.
Field Summary | |
---|---|
static String |
BACK_NAMING_FACTORY_KEY
The key for back initial context factory. |
protected Context |
backContext
The back naming context. |
protected ConcurrentHashMap<String,Object> |
repository
The repository. |
Constructor Summary | |
---|---|
S3Container()
Constructor. |
Method Summary | ||
---|---|---|
void |
bind(String name,
Object obj)
Binds the name to the object. |
|
void |
clear()
Clears the repository. |
|
|
lookup(String name)
Looks up an object. |
|
protected void |
prepareBackContext()
Prepares back naming context. |
|
void |
rebind(String name,
Object obj)
Binds the name to the object, overwriting any existing binding. |
|
protected PrototypeBeanFactory |
registerBeanFactory(String name)
Registers a bean factory. |
|
void |
unbind(String name)
Unbinds the named object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BACK_NAMING_FACTORY_KEY
protected ConcurrentHashMap<String,Object> repository
protected Context backContext
Constructor Detail |
---|
public S3Container()
Method Detail |
---|
protected void prepareBackContext()
public void bind(String name, Object obj) throws NameAlreadyBoundRuntimeException
name
- the nameobj
- the object
NameAlreadyBoundRuntimeException
- if the name is already bound to another objectpublic void unbind(String name) throws NameNotFoundRuntimeException
name
- the name.
NameNotFoundRuntimeException
- if the name is not bound to any objectspublic void rebind(String name, Object obj)
name
- the nameobj
- the objectpublic <T> T lookup(String name) throws NameNotFoundRuntimeException
T
- object typename
- the name
NameNotFoundRuntimeException
- if the name is not bound to any objectspublic void clear()
protected PrototypeBeanFactory registerBeanFactory(String name)
name
- the name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |