| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
instances |
| Constructor and Description |
|---|
SingletonScope() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Scope referenceScope)
Allows only singleton scoped beans to be injected into the target singleton bean.
|
java.lang.Object |
lookup(java.lang.String name)
Lookups for bean name.
|
void |
register(java.lang.String name,
java.lang.Object bean)
Registers the bean within the current scope.
|
void |
remove(java.lang.String name)
Removes the bean from the scope entirely.
|
public java.lang.Object lookup(java.lang.String name)
Scoperegistration,
therefore it should returns null if object is not
yet registered.public void register(java.lang.String name,
java.lang.Object bean)
Scopepublic void remove(java.lang.String name)
ScopeCopyright © 2003-2013 Jodd Team